Reload dashboard only after domain deletion finished. Fixes #40.

This commit is contained in:
Ivan Filippov 2016-05-15 13:12:33 -06:00
parent 283822eef0
commit dc1efdc3a3

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