From: Jeff Godin Date: Wed, 30 Oct 2013 17:17:25 +0000 (-0400) Subject: Add alert in user editor for method errors X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3d59a013070b41565e67398cb19d246095a05b3d;p=evergreen%2Fpines.git Add alert in user editor for method errors Add an alert() in the user editor so that method errors are not silent. Without this, a method error (such as when saving a patron fails at the db level) is silent. Better to at least inform the user that something is amiss. Signed-off-by: Jeff Godin Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index c31eb2fc54..aa8ec75eea 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -1940,6 +1940,9 @@ function _uEditSave(doClone) { if(stageUser) uEditRemoveStage(); uEditFinishSave(newPatron, doClone); } + }, + onmethoderror: function(req, status, status_text) { + alert("Method error: " + status + ": " + status_text); } } );