From: Jason Etheridge Date: Wed, 23 Mar 2011 15:51:56 +0000 (-0400) Subject: disable the Update/Create button when the interfaces need to synchronize X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5a647b6ceaa91567ca24148867455c7e5f6f83c7;p=evergreen%2Fequinox.git disable the Update/Create button when the interfaces need to synchronize --- 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); }