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