From 3f1c76fae276d6df853461f5e047d0eb356ac462 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 28 Jan 2011 17:37:32 +0000 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js | 3 +++ 1 file changed, 3 insertions(+) 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 c20d27056d..364d573121 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(); -- 2.11.0