disable the Update/Create button when the interfaces need to synchronize
authorJason Etheridge <jason@esilibrary.com>
Wed, 23 Mar 2011 15:51:56 +0000 (11:51 -0400)
committerJason Etheridge <jason@esilibrary.com>
Wed, 23 Mar 2011 15:51:56 +0000 (11:51 -0400)
Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js

index 2b04ea2..5ff592c 100644 (file)
@@ -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);
                 }