From b855e034106fab92e3e01e9bbe8bbc60ecdf6034 Mon Sep 17 00:00:00 2001 From: pines Date: Mon, 11 Sep 2006 05:44:17 +0000 Subject: [PATCH] mitigate update/display race. check return value git-svn-id: svn://svn.open-ils.org/ILS/trunk@6058 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/util.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/util.js b/Open-ILS/xul/staff_client/server/cat/util.js index a93d2b72bc..2901bf6c22 100644 --- a/Open-ILS/xul/staff_client/server/cat/util.js +++ b/Open-ILS/xul/staff_client/server/cat/util.js @@ -218,12 +218,15 @@ cat.util.spawn_copy_editor = function(list,edit) { api.FM_ACP_FLESHED_BATCH_UPDATE.method, [ ses(), copies, true ] ); - /* FIXME -- revisit the return value here */ + if (typeof r.ilsevent != 'undefined') { + if (r.ilsevent != 0) throw(r); + } + alert('Copies modified.'); } catch(E) { obj.error.standard_unexpected_error_alert('copy update error',E); } } else { - //alert('not updating'); + if (edit=='1') alert('Copies not modified.'); } } catch(E) { alert(E); -- 2.43.2