From d713b1dfb1a0c151a0f7ce6a78cad6b1be2d1490 Mon Sep 17 00:00:00 2001 From: pines Date: Mon, 11 Sep 2006 05:45:19 +0000 Subject: [PATCH] mitigate update/display race 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 | 1 + Open-ILS/xul/staff_client/server/circ/copy_status.js | 3 +++ 2 files changed, 4 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 188c1a725d..1098eb5088 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 @@ -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(); diff --git a/Open-ILS/xul/staff_client/server/circ/copy_status.js b/Open-ILS/xul/staff_client/server/circ/copy_status.js index 09c7811bde..12e3f3e37a 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_status.js +++ b/Open-ILS/xul/staff_client/server/circ/copy_status.js @@ -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.'); } ], -- 2.11.0