aboutsummaryrefslogtreecommitdiff
path: root/data/assets/js/admin/dialogs/user-edit.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/assets/js/admin/dialogs/user-edit.js')
-rw-r--r--data/assets/js/admin/dialogs/user-edit.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/data/assets/js/admin/dialogs/user-edit.js b/data/assets/js/admin/dialogs/user-edit.js
index 038a587..70c1dc3 100644
--- a/data/assets/js/admin/dialogs/user-edit.js
+++ b/data/assets/js/admin/dialogs/user-edit.js
@@ -75,16 +75,7 @@ jQuery(function($) {
// toggle loading
me.toggleClass('disabled').find('.loading').toggleClass('hidden');
}).fail(function(r) {
- var error = r.responseText;
-
- try {
- // try to extract error message from json response
- var data = $.parseJSON(r.responseText);
- if ('error' in data)
- error = data.error;
- } catch (e) {}
-
- alert('Error: ' + error);
+ gripe(r, 'save user');
}).done(function(r) {
$('#users-reload').click();
$('#user-edit-dialog').modal('hide');