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=0707923123fa2f6d95157463dbd794b91f425afa;p=Evergreen.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 11426a4390..77e66053ea 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -1851,6 +1851,9 @@ function _uEditSave(doClone) { if(stageUser) uEditRemoveStage(); uEditFinishSave(newPatron, doClone); } + }, + onmethoderror: function(req, status, status_text) { + alert("Method error: " + status + ": " + status_text); } } );