projects
/
evergreen
/
tadl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f7bf4f
)
Add alert in user editor for method errors
author
Jeff Godin
<jgodin@tadl.org>
Wed, 30 Oct 2013 17:17:25 +0000
(13:17 -0400)
committer
Jeff Godin
<jgodin@tadl.org>
Wed, 30 Oct 2013 17:17:25 +0000
(13:17 -0400)
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 <jgodin@tadl.org>
Open-ILS/web/js/ui/default/actor/user/register.js
patch
|
blob
|
history
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
debaeb2
..
4932d7b
100644
(file)
--- 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);
}
}
);