mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Reload dashboard only after domain deletion finished. Fixes #40.
This commit is contained in:
parent
283822eef0
commit
dc1efdc3a3
@ -29,8 +29,10 @@ var MyButtonAction = function () {
|
||||
bootbox.confirm("Are you sure you want to delete this domain?", function(result) {
|
||||
if (result == true){
|
||||
var domain = document.getElementById('delete_domain').value;
|
||||
$.get("/admin/domain/"+ domain +"/delete");
|
||||
window.location.href = '/';
|
||||
$.get("/admin/domain/"+ domain +"/delete").always(function() {
|
||||
window.location.href = '/';
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user