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=401b8bcb031284b7515f501368c8d83ee9895f11;p=evergreen%2Ftadl.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 --- 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 9db5b7ff74..c1e91b45ae 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -1910,6 +1910,9 @@ function _uEditSave(doClone) { if(stageUser) uEditRemoveStage(); uEditFinishSave(newPatron, doClone); } + }, + onmethoderror: function(req, status, status_text) { + alert("Method error: " + status + ": " + status_text); } } );