mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-27 21:45:39 +00:00
Merge pull request #139 from Cultti/master
Fix issue with deleting domain
This commit is contained in:
commit
194d95af57
@ -118,9 +118,10 @@ $(document.body).on('click', '.delete_domain', function() {
|
|||||||
var info = "Are you sure you want to delete " + domain + "?";
|
var info = "Are you sure you want to delete " + domain + "?";
|
||||||
modal.find('.modal-body p').text(info);
|
modal.find('.modal-body p').text(info);
|
||||||
modal.find('#button_delete_confirm').click(function() {
|
modal.find('#button_delete_confirm').click(function() {
|
||||||
$.get($SCRIPT_ROOT + '/admin/domain/' + domain + '/delete');
|
$.get($SCRIPT_ROOT + '/admin/domain/' + domain + '/delete', function() {
|
||||||
|
window.location.href = '{{ url_for('dashboard') }}';
|
||||||
|
});
|
||||||
modal.modal('hide');
|
modal.modal('hide');
|
||||||
window.location.href = '{{ url_for('dashboard') }}';
|
|
||||||
})
|
})
|
||||||
modal.modal('show');
|
modal.modal('show');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user