[open-ils-commits] r7840 -
trunk/Open-ILS/xul/staff_client/server/cat
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 26 14:06:42 EDT 2007
Author: phasefx
Date: 2007-09-26 13:56:53 -0400 (Wed, 26 Sep 2007)
New Revision: 7840
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js
Log:
do the stat cat filtering at the end of the render phase
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-26 17:56:02 UTC (rev 7839)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_editor.js 2007-09-26 17:56:53 UTC (rev 7840)
@@ -975,17 +975,6 @@
x.appendChild(menuitem);
}
- JSAN.use('util.file');
- var file = new util.file('copy_editor_prefs.'+g.data.server_unadorned);
- g.copy_editor_prefs = util.widgets.load_attributes(file);
- for (var i in g.copy_editor_prefs) {
- if (i.match(/filter_/) && g.copy_editor_prefs[i].checked == '') {
- try {
- g.toggle_stat_cat_display( document.getElementById(i) );
- } catch(E) { alert(E); }
- }
- }
-
/******************************************************************************************************/
/* Prepare the panes */
@@ -1048,6 +1037,22 @@
}
}
}
+
+
+ /******************************************************************************************************/
+ /* Synchronize stat cat visiblity with library filter menu */
+ JSAN.use('util.file');
+ var file = new util.file('copy_editor_prefs.'+g.data.server_unadorned);
+ g.copy_editor_prefs = util.widgets.load_attributes(file);
+ for (var i in g.copy_editor_prefs) {
+ if (i.match(/filter_/) && g.copy_editor_prefs[i].checked == '') {
+ try {
+ g.toggle_stat_cat_display( document.getElementById(i) );
+ } catch(E) { alert(E); }
+ }
+ }
+
+
}
/******************************************************************************************************/
More information about the open-ils-commits
mailing list