From 5a647b6ceaa91567ca24148867455c7e5f6f83c7 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Wed, 23 Mar 2011 11:51:56 -0400 Subject: [PATCH] disable the Update/Create button when the interfaces need to synchronize --- Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js index 2b04ea2091..5ff592c036 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js @@ -758,6 +758,7 @@ g.gather_copies_soon = function() { try { if (!xulG.unified_interface) { return; } dump('g.gather_copies_soon()\n'); + document.getElementById("Create").disabled = true; if (g.update_copy_editor_timeoutID) { clearTimeout(g.update_copy_editor_timeoutID); } @@ -768,6 +769,7 @@ g.gather_copies_soon = function() { try { g.gather_copies(); xulG.refresh_copy_editor(); + document.getElementById("Create").disabled = false; } catch(E) { alert('Error in volume_copy_editor.js with g.gather_copies_soon setTimeout func(): ' + E); } -- 2.11.0