From 59e1cfe1425a71c2de216206015930997facbfd6 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Wed, 30 Oct 2013 13:17:25 -0400 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/actor/user/register.js | 3 +++ 1 file changed, 3 insertions(+) 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 debaeb25ec..4932d7b463 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -1836,6 +1836,9 @@ function _uEditSave(doClone) { if(stageUser) uEditRemoveStage(); uEditFinishSave(newPatron, doClone); } + }, + onmethoderror: function(req, status, status_text) { + alert("Method error: " + status + ": " + status_text); } } ); -- 2.11.0