mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
12 lines
219 B
JavaScript
12 lines
219 B
JavaScript
function remove(username) {
|
|
$.post(base_url + 'api/admin/user/delete/' + username, function(data) {
|
|
if (data.success) {
|
|
location.reload();
|
|
}
|
|
else {
|
|
error = data.error;
|
|
alert('danger', error);
|
|
}
|
|
});
|
|
}
|