mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
Fix domain delete action if uwsgi path mount is not /
For ex: mount = /pdsn-admin=run.py
This commit is contained in:
parent
7ef76484d0
commit
4a1d2055de
@ -111,14 +111,14 @@ $('.dyndns_on_demand_toggle').on('ifToggled', function(event) {
|
||||
applyChanges(postdata, $SCRIPT_ROOT + '/domain/' + domain + '/managesetting', true);
|
||||
});
|
||||
|
||||
// handle deletion of user
|
||||
// handle deletion of domain
|
||||
$(document.body).on('click', '.delete_domain', function() {
|
||||
var modal = $("#modal_delete_domain");
|
||||
var domain = $(this).prop('id');
|
||||
var info = "Are you sure you want to delete " + domain + "?";
|
||||
modal.find('.modal-body p').text(info);
|
||||
modal.find('#button_delete_confirm').click(function() {
|
||||
$.get('/admin/domain/' + domain + '/delete');
|
||||
$.get($SCRIPT_ROOT + '/admin/domain/' + domain + '/delete');
|
||||
modal.modal('hide');
|
||||
window.location.href = '{{ url_for('dashboard') }}';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user