cloudStack 3.0 new UI - user page - implement Delete User action.

This commit is contained in:
Jessica Wang 2011-11-07 17:39:51 -08:00
parent 156833b4e9
commit 0b6abd1717
1 changed files with 32 additions and 1 deletions

View File

@ -883,7 +883,38 @@
args.complete();
}
}
}
},
'delete': {
label: 'Delete user',
messages: {
confirm: function(args) {
return 'Are you sure you want to delete this user?';
},
success: function(args) {
return 'user is being deleted.';
},
notification: function(args) {
return 'Deleting user';
},
complete: function(args) {
return 'user has been deleted.';
}
},
action: function(args) {
$.ajax({
url: createURL("deleteUser&id=" + args.context.users[0].id),
dataType: "json",
async: true,
success: function(json) {}
});
},
notification: {
poll: function(args) {
args.complete();
}
}
}
},
tabs: {