From: phasefx Date: Thu, 29 Jan 2009 03:52:02 +0000 (+0000) Subject: ah, document.loadOverlay.. this lovely thing is going to make it easier for us to... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c5357b21210b481d42b96b38b05314b1c6bd309a;p=Evergreen.git ah, document.loadOverlay.. this lovely thing is going to make it easier for us to load alternate interfaces git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12008 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/summary.xul b/Open-ILS/xul/staff_client/server/patron/summary.xul index e3227bcc9e..93c48e3e2c 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary.xul @@ -19,10 +19,9 @@ - @@ -35,9 +34,39 @@ \n'); + // setTimeout is needed here for xulrunner 1.8 + setTimeout( function() { try { post_overlay(); } catch(E) { alert(E); } }, 0 ); + } + } + function my_init() { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + observer = new myObserver(); + document.loadOverlay(location.protocol + '//' + location.hostname + '/xul/server/patron/summary_overlay.xul',observer) + } catch(E) { + alert(E); + } + } + + function post_overlay() { + try { + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); } JSAN.errorLevel = "die"; // none, warn, or die JSAN.addRepository('/xul/server/'); @@ -55,14 +84,13 @@ } ); window.refresh = function () { g.summary.retrieve(); } - + font_helper(); } catch(E) { var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/summary.xul', E]); try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); } alert(err_msg); } } - ]]>