mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 15:10:27 +00:00
Merge pull request #42 from ivanfilippov/fix_domain_deletion_issues
Reload dashboard only after domain deletion finished. Fixes #40.
This commit is contained in:
commit
1d36672352
@ -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