From: pines Date: Mon, 11 Sep 2006 05:44:17 +0000 (+0000) Subject: mitigate update/display race. check return value X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b855e034106fab92e3e01e9bbe8bbc60ecdf6034;p=Evergreen.git mitigate update/display race. check return value git-svn-id: svn://svn.open-ils.org/ILS/trunk@6058 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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);