quick way to get this working in xulrunner
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Mar 2006 16:57:57 +0000 (16:57 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Mar 2006 16:57:57 +0000 (16:57 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3358 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/user_editor.js

index 6102972..70ff7dc 100644 (file)
@@ -881,9 +881,14 @@ function uEditShowSummary() {
        uEditCollectData();
        var table = $('ue_summary_table').cloneNode(true);;
        uEditFleshSummaryTable(table);
-       var win = window.open("", $('ue_summary_window').innerHTML );   
-       win.document.body.innerHTML = "";
-       win.document.body.appendChild(table);
+       netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect UniversalBrowserWrite UniversalBrowserRead");
+       var serializer = Components.classes["@mozilla.org/xmlextras/xmlserializer;1"].getService(Components.interfaces.nsIDOMSerializer);
+       var win = window.open(
+               "data:application/xhtml+xml," + window.escape('<?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [ <!ENTITY nbsp " "> <!-- calendar needs this entity --> ]> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude"> <head><title>' + $('ue_summary_window').innerHTML + '</title></head><body>' + serializer.serializeToString(table) + '</body></html>'), 
+               $('ue_summary_window').innerHTML,
+               'chrome,resizable');
+       //win.document.body.innerHTML = "";
+       //win.document.body.appendChild(table);
        ERRORS = "";
 }