From a49aec3faa99d221393d3d9f7ef646b146fe6f1d Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 17 Nov 2008 03:10:38 +0000 Subject: [PATCH] fix hold notice interface git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11236 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../staff_client/server/patron/hold_notices.xul | 25 ++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/hold_notices.xul b/Open-ILS/xul/staff_client/server/patron/hold_notices.xul index 6e9f73f4ed..15c41d7b53 100644 --- a/Open-ILS/xul/staff_client/server/patron/hold_notices.xul +++ b/Open-ILS/xul/staff_client/server/patron/hold_notices.xul @@ -57,8 +57,11 @@ a_list_of_one(); - document.getElementById('bib_brief').setAttribute('src',urls.XUL_BIB_BRIEF); // + '?docid=' + g.ahr.target()); - get_contentWindow(document.getElementById('bib_brief')).xulG = { 'docid' : g.ahr.target() }; + var x = document.getElementById('bib_brief_box'); while (x.firstChild) x.removeChild(x.lastChild); + var bib_brief = document.createElement('iframe'); x.appendChild(bib_brief); + bib_brief.setAttribute('flex',1); + bib_brief.setAttribute('src',urls.XUL_BIB_BRIEF); + get_contentWindow(bib_brief).xulG = { 'docid' : g.ahr.target() }; refresh(); @@ -173,7 +176,12 @@ /* template */ var node = $('notification_template').cloneNode(true); np.appendChild(node); node.hidden = false; util.widgets.apply(node,'name','notify_time', - function(n){n.setAttribute("tooltiptext", $("patronStrings").getFormattedString('staff.patron.hold_notices.tooltiptext',[g.notifications[i].id(), g.notifications[i].hold(), g.notifications[i].notify_staff()])); + function(n){ + n.setAttribute( + "tooltiptext", + $("patronStrings").getFormattedString('staff.patron.hold_notices.tooltiptext',[g.notifications[i].id(), g.notifications[i].hold(), g.notifications[i].notify_staff()]) + ); + } ); apply(node,'method',g.notifications[i].method ? g.notifications[i].method() : ''); apply(node,'note',g.notifications[i].note() ? g.notifications[i].note() : ''); @@ -189,18 +197,13 @@ xml += ''; xml += ''; xml += ''; - xml += '