summaryrefslogtreecommitdiffstats
path: root/settings/js/users
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-08-19 16:10:55 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-08-19 16:10:55 +0200
commit8f00f103c6a802abd72eac9e769d83db76fd1166 (patch)
tree1d1008b83742f4db87df1a832a56e16a1d621077 /settings/js/users
parent5fd36d017ecdbce61dcf1c67ae04c8c0be81a4bf (diff)
parente350a8bfd070b3742e0c5e6cbb2b9a0e69d7473f (diff)
downloadnextcloud-server-8f00f103c6a802abd72eac9e769d83db76fd1166.tar.gz
nextcloud-server-8f00f103c6a802abd72eac9e769d83db76fd1166.zip
Merge pull request #18114 from owncloud/fix-delete-user-feedback
[user mgnt] fix delete user feedback on failure
Diffstat (limited to 'settings/js/users')
-rw-r--r--settings/js/users/deleteHandler.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/settings/js/users/deleteHandler.js b/settings/js/users/deleteHandler.js
index fcad39dd4cc..de87f901372 100644
--- a/settings/js/users/deleteHandler.js
+++ b/settings/js/users/deleteHandler.js
@@ -194,16 +194,16 @@ DeleteHandler.prototype.deleteEntry = function(keepNotification) {
// FIXME: do not use synchronous ajax calls as they block the browser !
async: false,
success: function (result) {
- if (result.status === 'success') {
- // Remove undo option, & remove user from table
-
- //TODO: following line
- dh.removeCallback(dh.oidToDelete);
- dh.canceled = true;
- } else {
- OC.dialogs.alert(result.data.message, t('settings', 'Unable to delete {objName}', {objName: dh.oidToDelete}));
- dh.undoCallback(dh.oidToDelete);
- }
+ // Remove undo option, & remove user from table
+
+ //TODO: following line
+ dh.removeCallback(dh.oidToDelete);
+ dh.canceled = true;
+ },
+ error: function (jqXHR) {
+ OC.dialogs.alert(jqXHR.responseJSON.data.message, t('settings', 'Unable to delete {objName}', {objName: dh.oidToDelete}));
+ dh.undoCallback(dh.oidToDelete);
+
}
});
};