From: Jason Etheridge Date: Sun, 20 Feb 2011 02:50:14 +0000 (-0500) Subject: load volume editor and passthru xulG X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=703ebf99bf2c56ef23cfb98624998dfcaeb5c529;p=evergreen%2Fequinox.git load volume editor and passthru xulG --- diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js index 99eca39871..072f3d75ee 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js @@ -9,24 +9,22 @@ function my_init() { JSAN.use('util.error'); error = new util.error(); error.sdump('D_TRACE','my_init() for main_test.xul'); - dojo.require('openils.PermaCrud'); + /*if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') { + try { window.xulG.set_tab_name('Test'); } catch(E) { alert(E); } + }*/ - var types = new openils.PermaCrud( + JSAN.use('util.browser'); + var volume_pane = new util.browser(); + volume_pane.init( { - authtoken :ses() - } - ).retrieveAll('coust'); - - dojo.forEach(types, - function(type) { - alert( js2JSON(type) ); + 'url' : urls.XUL_VOLUME_COPY_CREATOR_ORIGINAL, + 'push_xulG' : true, + 'alt_print' : false, + 'browser_id' : 'volume_pane', + 'passthru_content_params' : xulG } ); - if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') { - try { window.xulG.set_tab_name('Test'); } catch(E) { alert(E); } - } - } catch(E) { try { error.standard_unexpected_error_alert('main/test.xul',E); } catch(F) { alert(E); } } diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.xul b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.xul index bd606c2a76..521babf620 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.xul +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_editor.xul @@ -31,7 +31,11 @@