[open-ils-commits] r18004 - in trunk/Open-ILS/xul/staff_client: chrome/content/OpenILS chrome/content/main external server/admin server/cat server/circ server/main server/patron server/serial (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Sep 26 05:23:49 EDT 2010


Author: phasefx
Date: 2010-09-26 05:23:43 -0400 (Sun, 26 Sep 2010)
New Revision: 18004

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
   trunk/Open-ILS/xul/staff_client/chrome/content/main/main.xul
   trunk/Open-ILS/xul/staff_client/external/dojo_template.xul
   trunk/Open-ILS/xul/staff_client/external/template.xul
   trunk/Open-ILS/xul/staff_client/server/admin/do_not_auto_attempt_print_setting.xul
   trunk/Open-ILS/xul/staff_client/server/admin/font_settings.xul
   trunk/Open-ILS/xul/staff_client/server/admin/offline_manage_xacts.xul
   trunk/Open-ILS/xul/staff_client/server/admin/transit_list.xul
   trunk/Open-ILS/xul/staff_client/server/cat/bib_brief.xul
   trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.xul
   trunk/Open-ILS/xul/staff_client/server/cat/copy_notes.xul
   trunk/Open-ILS/xul/staff_client/server/cat/marc_new.xul
   trunk/Open-ILS/xul/staff_client/server/cat/marc_view.xul
   trunk/Open-ILS/xul/staff_client/server/cat/volume_buckets.xul
   trunk/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.xul
   trunk/Open-ILS/xul/staff_client/server/circ/circ_brief.xul
   trunk/Open-ILS/xul/staff_client/server/circ/circ_summary.xul
   trunk/Open-ILS/xul/staff_client/server/circ/missing_pieces.xul
   trunk/Open-ILS/xul/staff_client/server/circ/pre_cat_fields.xul
   trunk/Open-ILS/xul/staff_client/server/circ/print_list_template_editor.xul
   trunk/Open-ILS/xul/staff_client/server/main/simple_auth.xul
   trunk/Open-ILS/xul/staff_client/server/main/verify_credentials.xul
   trunk/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul
   trunk/Open-ILS/xul/staff_client/server/patron/bill_cc_info.xul
   trunk/Open-ILS/xul/staff_client/server/patron/bill_check_info.xul
   trunk/Open-ILS/xul/staff_client/server/patron/bill_details.xul
   trunk/Open-ILS/xul/staff_client/server/patron/bill_wizard.xul
   trunk/Open-ILS/xul/staff_client/server/patron/edit_standing_penalty.xul
   trunk/Open-ILS/xul/staff_client/server/patron/hold_cancel.xul
   trunk/Open-ILS/xul/staff_client/server/patron/info_group.xul
   trunk/Open-ILS/xul/staff_client/server/patron/info_notes.xul
   trunk/Open-ILS/xul/staff_client/server/patron/info_stat_cats.xul
   trunk/Open-ILS/xul/staff_client/server/patron/info_surveys.xul
   trunk/Open-ILS/xul/staff_client/server/patron/items.xul
   trunk/Open-ILS/xul/staff_client/server/patron/new_standing_penalty.xul
   trunk/Open-ILS/xul/staff_client/server/patron/search_form.xul
   trunk/Open-ILS/xul/staff_client/server/patron/search_form_horiz.xul
   trunk/Open-ILS/xul/staff_client/server/patron/search_result.xul
   trunk/Open-ILS/xul/staff_client/server/patron/summary.xul
   trunk/Open-ILS/xul/staff_client/server/patron/user_buckets.xul
   trunk/Open-ILS/xul/staff_client/server/serial/notes.xul
   trunk/Open-ILS/xul/staff_client/server/serial/serctrl_main.xul
Log:
Call persist_helper() in most interfaces.  Give it the ability to handle resizing windows and set some windows up so that their height, width, and maximized state persist


Modified: trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js	2010-09-26 09:23:43 UTC (rev 18004)
@@ -94,6 +94,9 @@
                             if (ev.explicitOriginalTarget != node) return;
                         } else {
                             target = ev.target;
+                            if (target == window) {
+                                target = window.document.documentElement;
+                            }
                         }
                         var filename = location.pathname.split('/')[ location.pathname.split('/').length - 1 ];
                         var base_key = 'oils_persist_' + String(location.hostname + '_' + filename + '_' + target.getAttribute('id')).replace('/','_','g') + '_' + base_key_suffix;
@@ -108,11 +111,20 @@
                             } else if ( attribute_list[j] == 'value' && ['textbox'].indexOf( target.nodeName ) > -1 ) {
                                 value = target.value;
                                 dump('\t' + value + ' <== .' + attribute_list[j] + '\n');
+                            } else if ( attribute_list[j] == 'sizemode' && ['window'].indexOf( target.nodeName ) > -1 ) {
+                                value = window.windowState;
+                                dump('\t' + value + ' <== window.windowState, @' + attribute_list[j] + '\n');
+                            } else if ( attribute_list[j] == 'height' && ['window'].indexOf( target.nodeName ) > -1 ) {
+                                value = window.outerHeight;
+                                dump('\t' + value + ' <== window.outerHeight, @' + attribute_list[j] + '\n');
+                            } else if ( attribute_list[j] == 'width' && ['window'].indexOf( target.nodeName ) > -1 ) {
+                                value = window.outerWidth;
+                                dump('\t' + value + ' <== window.outerWidth, @' + attribute_list[j] + '\n');
                             } else {
                                 dump('\t' + value + ' <== @' + attribute_list[j] + '\n');
                             }
                             prefs.setCharPref( key, value );
-                            // TODO: Need to add logic for window resizing, splitter repositioning, grippy state, etc.
+                            // TODO: Need to add logic for splitter repositioning, grippy state, etc.
                             // NOTE: oils_persist_peers and oils_persist="width" on those peers can help with the elements adjacent to a splitter
                         }
                         if (target.hasAttribute('oils_persist_peers') && ! ev.cancelable) { // We abuse the .cancelable field on the oils_persist event to prevent looping
@@ -153,6 +165,22 @@
                         } else if ( attribute_list[j] == 'value' && ['textbox'].indexOf( nodes[i].nodeName ) > -1 ) {
                             nodes[i].value = value;
                             dump('\t' + value + ' ==> .' + attribute_list[j] + '\n');
+                        } else if ( attribute_list[j] == 'sizemode' && ['window'].indexOf( nodes[i].nodeName ) > -1 ) {
+                            switch(value) {
+                                case window.STATE_MAXIMIZED:
+                                    window.maximize();
+                                    break;
+                                case window.STATE_MINIMIZED:
+                                    window.minimize();
+                                    break;
+                            };
+                            dump('\t' + value + ' ==> window.windowState, @' + attribute_list[j] + '\n');
+                        } else if ( attribute_list[j] == 'height' && ['window'].indexOf( nodes[i].nodeName ) > -1 ) {
+                            window.outerHeight = value;
+                            dump('\t' + value + ' ==> window.outerHeight, @' + attribute_list[j] + '\n');
+                        } else if ( attribute_list[j] == 'width' && ['window'].indexOf( nodes[i].nodeName ) > -1 ) {
+                            window.outerWidth = value;
+                            dump('\t' + value + ' ==> window.outerWidth, @' + attribute_list[j] + '\n');
                         } else {
                             nodes[i].setAttribute( attribute_list[j], value);
                             dump('\t' + value + ' ==> @' + attribute_list[j] + '\n');
@@ -192,29 +220,33 @@
                         false
                     );
                 } else {
+                    var node = nodes[i];
                     var event_types = [];
-                    if (nodes[i].hasAttribute('oils_persist_events')) {
-                        var event_type_list = nodes[i].getAttribute('oils_persist_events').split(' ');
+                    if (node.hasAttribute('oils_persist_events')) {
+                        var event_type_list = node.getAttribute('oils_persist_events').split(' ');
                         for (var j = 0; j < event_type_list.length; j++) {
                             event_types.push( event_type_list[j] );
                         }
                     } else {
-                        if (nodes[i].nodeName == 'textbox') { 
+                        if (node.nodeName == 'textbox') { 
                             event_types.push('change'); 
+                        } else if (node.nodeName == 'window') {
+                            event_types.push('resize'); 
+                            node = window; // xul window is an element of window.document
                         } else {
                             event_types.push('command'); 
                         }
                     }
                     for (var j = 0; j < event_types.length; j++) {
-                        nodes[i].addEventListener(
+                        node.addEventListener(
                             event_types[j],
-                            gen_event_handler(event_types[j],nodes[i]),
+                            gen_event_handler(event_types[j],node),
                             false
                         );
                     }
-                    nodes[i].addEventListener(
+                    node.addEventListener(
                         'oils_persist',
-                        gen_oils_persist_handler( base_key, nodes[i] ),
+                        gen_oils_persist_handler( base_key, node ),
                         false
                     );
                 }

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/main.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/main.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/main.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -21,7 +21,7 @@
 <window id="main_win" 
     onload="try { main_init(); } catch(E) { alert(E); }"
     onunload="try { G.auth.logoff(); } catch(E) { alert(E); }"
-    title="&staff.auth.title;"
+    title="&staff.auth.title;" persist="width height sizemode"
     width="640" height="480" windowtype="eg_main"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 

Modified: trunk/Open-ILS/xul/staff_client/external/dojo_template.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/external/dojo_template.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/external/dojo_template.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="main_test_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/external/template.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/external/template.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/external/template.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="example_template_win" 
-    onload="try { my_init(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/admin/do_not_auto_attempt_print_setting.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/do_not_auto_attempt_print_setting.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/admin/do_not_auto_attempt_print_setting.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="main_test_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/admin/font_settings.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/font_settings.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/admin/font_settings.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="font_settings_win" 
-    onload="try { my_init(); } catch(E) { alert(E); }" style="background: white;"
+    onload="try { my_init(); persist_helper(); } catch(E) { alert(E); }" style="background: white;"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/admin/offline_manage_xacts.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/offline_manage_xacts.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/admin/offline_manage_xacts.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -19,7 +19,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="admin_offline_manage_xacts_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/admin/transit_list.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/transit_list.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/admin/transit_list.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="admin_transit_list_win" active="true" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/cat/bib_brief.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/bib_brief.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/cat/bib_brief.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -22,7 +22,7 @@
 <?xul-overlay href="/xul/server/cat/bib_brief_overlay.xul"?>
 
 <window id="cat_bib_brief_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -22,7 +22,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="cat_copy_browser" active="true"
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_notes.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_notes.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_notes.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -22,8 +22,9 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="copy_notes_win" width="700" height="550"
+    oils_persist="height width sizemode"
     title="&staff.cat.copy_editor.copy_notes.label;"
-    onload="try{ my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try{ my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/cat/marc_new.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marc_new.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marc_new.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="example_template_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/cat/marc_view.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marc_view.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marc_view.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="cat_marc_view_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/cat/volume_buckets.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/volume_buckets.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/cat/volume_buckets.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="example_template_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,8 +18,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="cat_volume_copy_creator_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
-    width="800" height="580"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
+    width="800" height="580" oils_persist="height width sizemode"
     title="&staff.cat.volume_copy_creator.title;"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 

Modified: trunk/Open-ILS/xul/staff_client/server/circ/circ_brief.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/circ_brief.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/circ/circ_brief.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -19,7 +19,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="circ_circ_brief_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns:html="http://www.w3.org/1999/xhtml"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 

Modified: trunk/Open-ILS/xul/staff_client/server/circ/circ_summary.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/circ_summary.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/circ/circ_summary.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -19,8 +19,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="circ_circ_brief_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
-    width="750" height="550"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
+    width="750" height="550" oils_persist="height width sizemode"
     xmlns:html="http://www.w3.org/1999/xhtml"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 

Modified: trunk/Open-ILS/xul/staff_client/server/circ/missing_pieces.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/missing_pieces.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/circ/missing_pieces.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="main_test_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/circ/pre_cat_fields.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/pre_cat_fields.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/circ/pre_cat_fields.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -21,8 +21,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="pre_cat_fields" title="&staff.circ.pre_cat.window.title;"
-    orient="vertical" style="overflow: auto"
-    onload="try{my_init();font_helper(); }catch(E){alert(E);}"
+    orient="vertical" style="overflow: auto" oils_persist="height width sizemode"
+    onload="try{ my_init(); font_helper(); persist_helper(); }catch(E){alert(E);}"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/circ/print_list_template_editor.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/print_list_template_editor.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/circ/print_list_template_editor.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="print_list_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/main/simple_auth.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/main/simple_auth.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/main/simple_auth.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -21,8 +21,8 @@
 <!-- OVERLAYS -->
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
-<window id="simple_auth_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+<window id="simple_auth_win" oils_persist="height width sizemode"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/main/verify_credentials.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/main/verify_credentials.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/main/verify_credentials.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -17,7 +17,7 @@
 <!-- OVERLAYS -->
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
-<window id="verify_win" onload="try { verify_init(); font_helper(); } catch(E) { alert(E); }"
+<window id="verify_win" onload="try { verify_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="patron_barcode_entry_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill_cc_info.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill_cc_info.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill_cc_info.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -19,8 +19,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="patron_bill" title="&staff.patron.bill_cc_info.title;"
-    orient="vertical" style="overflow: auto"
-    onload="try{info_init(); font_helper();refresh_fields();}catch(E){alert(E);}"
+    orient="vertical" style="overflow: auto" oils_persist="height width sizemode"
+    onload="try{info_init(); font_helper(); refresh_fields(); persist_helper(); }catch(E){alert(E);}"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill_check_info.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill_check_info.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill_check_info.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -19,8 +19,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="patron_bill" title="&staff.patron.bill_check_info.title;"
-    orient="vertical" style="overflow: auto"
-    onload="try{info_init(); font_helper();}catch(E){alert(E);}"
+    orient="vertical" style="overflow: auto" oils_persist="height width sizemode"
+    onload="try{info_init(); font_helper(); persist_helper(); }catch(E){alert(E);}"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill_details.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill_details.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill_details.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -20,8 +20,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 <?xul-overlay href="/xul/server/patron/bill_summary_overlay.xul"?>
 
-<window id="bill_details_win" width="700" height="550"
-    onload="try{ my_init(); font_helper(); } catch(E) { alert(E); }"
+<window id="bill_details_win" width="700" height="550" oils_persist="width height sizemode"
+    onload="try{ my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill_wizard.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill_wizard.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill_wizard.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -20,8 +20,8 @@
 <?xul-overlay href="/xul/server/patron/bill_summary_overlay.xul"?>
 
 <window id="patron_bill" title="&staff.patron.bill_wizard.title;"
-    orient="vertical" style="overflow: auto"
-    onload="try { patron_bill_init(); font_helper(); } catch(E) { alert(E); }" width="700" height="550"
+    orient="vertical" style="overflow: auto" oils_persist="width height sizemode"
+    onload="try { patron_bill_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }" width="700" height="550"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/edit_standing_penalty.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/edit_standing_penalty.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/edit_standing_penalty.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="edit_penalty_win" 
-    onload="try { edit_penalty_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { edit_penalty_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
+    oils_persist="height width sizemode"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     title="&staff.patron_display.edit_penalty_dialog.title;">
 

Modified: trunk/Open-ILS/xul/staff_client/server/patron/hold_cancel.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/hold_cancel.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/hold_cancel.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="hold_cancel_win" 
-    onload="try { hold_cancel_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { hold_cancel_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     title="&staff.hold_list.cancel_hold_dialog.title;">
 

Modified: trunk/Open-ILS/xul/staff_client/server/patron/info_group.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/info_group.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/info_group.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -19,7 +19,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="patron_info_group_win" width="700" height="550" active="true"
-    onload="try{ my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try{ my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/info_notes.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/info_notes.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/info_notes.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -19,7 +19,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="patron_info_win" width="700" height="550"
-    onload="try{ my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try{ my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/info_stat_cats.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/info_stat_cats.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/info_stat_cats.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -19,7 +19,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="patron_info_stat_cats_win" width="700" height="550"
-    onload="try{ my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try{ my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/info_surveys.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/info_surveys.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/info_surveys.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -19,7 +19,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="patron_info_surveys_win" width="700" height="550"
-    onload="try{ my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try{ my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/items.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/items.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/items.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -20,7 +20,7 @@
 <?xul-overlay href="/xul/server/patron/items_overlay.xul"?>
 
 <window id="items_win" active="true" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/new_standing_penalty.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/new_standing_penalty.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/new_standing_penalty.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="new_penalty_win" 
-    onload="try { new_penalty_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { new_penalty_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
+    oils_persist="height width sizemode"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     title="&staff.patron_display.apply_penalty_dialog.title;">
 

Modified: trunk/Open-ILS/xul/staff_client/server/patron/search_form.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/search_form.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/search_form.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -20,7 +20,7 @@
 <?xul-overlay href="/xul/server/patron/search_form_overlay.xul"?>
 
 <window id="patron_search_form_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/search_form_horiz.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/search_form_horiz.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/search_form_horiz.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -20,7 +20,7 @@
 <?xul-overlay href="/xul/server/patron/search_form_horiz_overlay.xul"?>
 
 <window id="patron_search_form_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/search_result.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/search_result.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/search_result.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -20,7 +20,7 @@
 <?xul-overlay href="/xul/server/patron/search_result_overlay.xul"?>
 
 <window id="patron_search_result_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/summary.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/summary.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/summary.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -20,7 +20,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="patron_summary_win" 
-    onload="try { font_helper(); my_init(); } catch(E) { alert(E); }" onunload="try { observer.unregister(); } catch(E) { alert(E); }"
+    onload="try { font_helper(); my_init(); persist_helper(); } catch(E) { alert(E); }" onunload="try { observer.unregister(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/patron/user_buckets.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/user_buckets.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/patron/user_buckets.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -18,7 +18,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="example_template_win" 
-    onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+    onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/serial/notes.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/serial/notes.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/serial/notes.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -22,8 +22,8 @@
 <!-- OVERLAYS -->
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
-<window id="notes_win" width="700" height="550"
-	onload="try{ my_init(); font_helper(); } catch(E) { alert(E); }"
+<window id="notes_win" width="700" height="550" oils_persist="height width sizemode"
+	onload="try{ my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
 	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
 	<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

Modified: trunk/Open-ILS/xul/staff_client/server/serial/serctrl_main.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/serial/serctrl_main.xul	2010-09-26 08:06:33 UTC (rev 18003)
+++ trunk/Open-ILS/xul/staff_client/server/serial/serctrl_main.xul	2010-09-26 09:23:43 UTC (rev 18004)
@@ -25,7 +25,7 @@
 <?xul-overlay href="/xul/server/serial/manage_subs.xul"?>
 
 <window id="serial_serctrl_main" 
-	onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+	onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
 	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
 	<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->



More information about the open-ils-commits mailing list