[open-ils-commits] r19321 - trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jan 28 12:37:36 EST 2011


Author: phasefx
Date: 2011-01-28 12:37:32 -0500 (Fri, 28 Jan 2011)
New Revision: 19321

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
Log:
effectively fixes tab locking with the MARC editor, and makes the previous fix with the patron editor redundant.  bleh :)


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	2011-01-28 17:37:25 UTC (rev 19320)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js	2011-01-28 17:37:32 UTC (rev 19321)
@@ -46,6 +46,7 @@
             if (typeof xulG.unlock_tab == 'function') {
                 dump('\twith xulG.lock_tab\n');
                 xulG.lock_tab();
+                window.oils_lock++; // different window scope than the chrome of xulG.lock_tab
             } else {
                 dump('\twithout xulG.lock_tab\n');
                 oils_unsaved_data_V();
@@ -64,6 +65,8 @@
             if (typeof xulG.unlock_tab == 'function') {
                 dump('\twith xulG.unlock_tab\n');
                 xulG.unlock_tab();
+                window.oils_lock--; // different window scope than the chrome of xulG.unlock_tab
+                if (window.oils_lock < 0) { window.oils_lock = 0; }
             } else {
                 dump('\twithout xulG.unlock_tab\n');
                 oils_unsaved_data_P();



More information about the open-ils-commits mailing list