[open-ils-commits] r7757 -
trunk/Open-ILS/xul/staff_client/server/cat
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 5 10:45:17 EDT 2007
Author: phasefx
Date: 2007-09-05 10:38:25 -0400 (Wed, 05 Sep 2007)
New Revision: 7757
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
Log:
logic error fix
Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js 2007-09-05 14:18:41 UTC (rev 7756)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js 2007-09-05 14:38:25 UTC (rev 7757)
@@ -44,7 +44,13 @@
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? */
if (xul_param('edit',{'modal_xulG':true}) == '1') {
@@ -520,7 +526,7 @@
}
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 @@
/******************************************************************************************************/
/* These get show in the left panel */
+function init_panes() {
g.panes_and_field_names = {
'left_pane' :
@@ -888,6 +895,7 @@
]
};
+}
/******************************************************************************************************/
/* This loops through all our fieldnames and all the copies, tallying up counts for the different values */
More information about the open-ils-commits
mailing list