From e905be3bdefce53a5096052004218a9af9661ade Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 17 Nov 2008 02:53:11 +0000 Subject: [PATCH] iframe tweaks for xulrunner 1.9. hold_notices.xul is all kinds of broken, though git-svn-id: svn://svn.open-ils.org/ILS/trunk@11233 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/server/cat/copy_editor.js | 10 ++--- .../xul/staff_client/server/cat/copy_editor.xul | 4 +- .../xul/staff_client/server/cat/copy_summary.xul | 2 +- .../staff_client/server/cat/volume_copy_creator.js | 7 +++- .../server/cat/volume_copy_creator.xul | 4 +- .../xul/staff_client/server/circ/circ_summary.xul | 22 +++++++---- .../xul/staff_client/server/circ/copy_details.xul | 31 ++++++++------- .../staff_client/server/patron/bill_details.xul | 17 +++++---- .../staff_client/server/patron/hold_notices.xul | 16 ++++++-- Open-ILS/xul/staff_client/server/patron/info.xul | 44 ++++++++++++---------- 10 files changed, 91 insertions(+), 66 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.js b/Open-ILS/xul/staff_client/server/cat/copy_editor.js index c9b38d44d0..8b1bbcf86a 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -139,13 +139,11 @@ function my_init() { /******************************************************************************************************/ /* Show the Record Details? */ + var bdb = document.getElementById('brief_display_box'); while(bdb.firstChild) bdb.removeChild(bdb.lastChild); if (g.docid) { - document.getElementById('brief_display').setAttribute( - 'src', - urls.XUL_BIB_BRIEF + '?docid=' + g.docid - ); - } else { - document.getElementById('brief_display').setAttribute('hidden','true'); + var brief_display = document.createElement('iframe'); bdb.appendChild(brief_display); + brief_display.setAttribute( 'src', urls.XUL_BIB_BRIEF + '?docid=' + g.docid); // this is a modal window, so can't push in xulG + brief_display.setAttribute( 'flex','1' ); } /******************************************************************************************************/ diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.xul b/Open-ILS/xul/staff_client/server/cat/copy_editor.xul index 367117aaae..097182f617 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.xul +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.xul @@ -37,9 +37,9 @@ -