From dfc211bf88d7c4743b6fdec2b4c5e088855abf77 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 15 Mar 2006 16:57:57 +0000 Subject: [PATCH 1/1] quick way to get this working in xulrunner git-svn-id: svn://svn.open-ils.org/ILS/trunk@3358 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/server/patron/user_editor.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/user_editor.js b/Open-ILS/xul/staff_client/server/patron/user_editor.js index 6102972fd9..70ff7dc5d1 100644 --- a/Open-ILS/xul/staff_client/server/patron/user_editor.js +++ b/Open-ILS/xul/staff_client/server/patron/user_editor.js @@ -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(' ]> ' + $('ue_summary_window').innerHTML + '' + serializer.serializeToString(table) + ''), + $('ue_summary_window').innerHTML, + 'chrome,resizable'); + //win.document.body.innerHTML = ""; + //win.document.body.appendChild(table); ERRORS = ""; } -- 2.43.2