summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-07-15 16:33:17 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-07-15 16:33:17 +0200
commit4700222ea91a20fad40c5c6dfb50ab2f943731cc (patch)
treefd1c965e0ddb6a789e0a1dc2c749ba930463b88f /settings
parent044134a289339e0b7dbcbfa9f5603efca1dfea81 (diff)
parent160e701fbf4d87e9673114f0dd51c6705e180475 (diff)
downloadnextcloud-server-4700222ea91a20fad40c5c6dfb50ab2f943731cc.tar.gz
nextcloud-server-4700222ea91a20fad40c5c6dfb50ab2f943731cc.zip
Merge branch 'master' into subadmin
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users.js35
1 files changed, 17 insertions, 18 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index c86949db384..f1fb0f5f6df 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -47,25 +47,24 @@ UserList={
if( !UserList.deleteCanceled && UserList.deleteUid ){
// Delete user via ajax
- $.post(
- OC.filePath('settings','ajax','removeuser.php'),
- {username:UserList.deleteUid},
- function(result){
-
- // Remove undo option, & remove user from table
- boolOperationFinished(
- data, function(){
- $('#notification').fadeOut();
- $('tr').filterAttr( 'data-uid', username ).remove();
- UserList.deleteCanceled=true;
- UserList.deleteFiles=null;
- if( ready ){
- ready();
- }
+ $.ajax({
+ type: 'POST',
+ url: OC.filePath('settings', 'ajax', 'removeuser.php'),
+ async: false,
+ data: { username: UserList.deleteUid },
+ success: function(result) {
+ if (result.status == 'success') {
+ // Remove undo option, & remove user from table
+ $('#notification').fadeOut();
+ $('tr').filterAttr('data-uid', UserList.deleteUid).remove();
+ UserList.deleteCanceled = true;
+ UserList.deleteFiles = null;
+ if (ready) {
+ ready();
}
- );
+ }
}
- );
+ });
}
}
}
@@ -225,7 +224,7 @@ $(document).ready(function(){
})
$('input.quota-other').live('change',function(){
- var uid=$(this).parent().parent().data('uid');
+ var uid=$(this).parent().parent().parent().data('uid');
var quota=$(this).val();
var select=$(this).prev();
var other=$(this);