From: phasefx Date: Fri, 28 Jan 2011 17:37:32 +0000 (+0000) Subject: effectively fixes tab locking with the MARC editor, and makes the previous fix with... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3f1c76fae276d6df853461f5e047d0eb356ac462;p=evergreen%2Fbjwebb.git effectively fixes tab locking with the MARC editor, and makes the previous fix with the patron editor redundant. bleh :) git-svn-id: svn://svn.open-ils.org/ILS/trunk@19321 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js index c20d27056..364d57312 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js @@ -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();