From 2c36155dbfbfa2b774368ac07fdc3633b1cdf721 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 5 Sep 2007 14:38:25 +0000 Subject: [PATCH] logic error fix git-svn-id: svn://svn.open-ils.org/ILS/trunk@7757 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/copy_editor.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 9541f2d206..db72928407 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -44,6 +44,12 @@ function my_init() { g.callnumbers = xul_param('callnumbers',{'concat':true,'JSON2js_if_cgi':true,'JSON2js_if_xpcom':true,'stash_name':'temp_callnumbers','clear_xpcom':true,'modal_xulG':true}); + + /******************************************************************************************************/ + /* Quick fix, this was defined inline in the global scope but now needs g.error and g.copies from my_init */ + + init_panes(); + /******************************************************************************************************/ /* Is the interface an editor or a viewer, single or multi copy, existing copies or new copies? */ @@ -520,7 +526,7 @@ g.safe_to_change_owning_lib = function() { } return safe; } catch(E) { - g.error.standard_unexpected_error_alert('safe_to_change_owning_lib?',E); + g.error.standard_unexpected_error_alert('safe_to_change_owning_lib?',E); return false; } } @@ -706,6 +712,7 @@ g.editable_stat_cat_names = []; /******************************************************************************************************/ /* These get show in the left panel */ +function init_panes() { g.panes_and_field_names = { 'left_pane' : @@ -888,6 +895,7 @@ g.panes_and_field_names = { ] }; +} /******************************************************************************************************/ /* This loops through all our fieldnames and all the copies, tallying up counts for the different values */ -- 2.43.2