mitigate update/display race
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Sep 2006 05:45:19 +0000 (05:45 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Sep 2006 05:45:19 +0000 (05:45 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6059 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
Open-ILS/xul/staff_client/server/circ/copy_status.js

index 188c1a7..1098eb5 100644 (file)
@@ -415,6 +415,7 @@ g.stash_and_close = function() {
                                        default: g.error.standard_unexpected_error_alert('volume tree update',r); break;
                                }
                        } else {
+                               alert('Copies added.');
                                if (copies.length > 0 && $('print_labels').checked) {
                                        JSAN.use('util.functional');
                                        JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.stash_retrieve();
index 09c7811..12e3f3e 100644 (file)
@@ -103,6 +103,7 @@ circ.copy_status.prototype = {
                                                                        var checkin = circ.util.checkin_via_barcode( ses(), barcode );
                                                                        setTimeout( function(a) { return function() { obj.copy_status( a ); }; }(barcode), 0);
                                                                }
+                                                               alert('Action complete.');
                                                        } catch(E) {
                                                                obj.error.standard_unexpected_error_alert('Checkin did not likely happen.',E);
                                                        }
@@ -164,6 +165,7 @@ circ.copy_status.prototype = {
                                                                var barcode = obj.selection_list[i].barcode;
                                                                setTimeout( function(a) { return function() { obj.copy_status( a ); }; }(barcode), 0);
                                                        }
+                                                       alert('Action complete.');
                                                }
                                        ],
                                        'sel_patron' : [
@@ -196,6 +198,7 @@ circ.copy_status.prototype = {
                                                                        alert('Item with barcode ' + barcode + ' is not circulating.');
                                                                }
                                                        }
+                                                       alert('Action complete.');
                                                }
                                        ],