From 3d59a013070b41565e67398cb19d246095a05b3d 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 Signed-off-by: Mike Rylander --- 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 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); } } ); -- 2.11.0