Merge pull request #42 from ivanfilippov/fix_domain_deletion_issues

Reload dashboard only after domain deletion finished. Fixes #40.
This commit is contained in:
Khanh Ngo 2016-05-19 10:40:06 +07:00
commit 1d36672352

View File

@ -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 = '/';
});
}
});
});