mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
Merge pull request #106 from vdchuyen/master
Fix domain delete action if uwsgi path mount is not /
This commit is contained in:
commit
3cf76d94f0
@ -111,14 +111,14 @@ $('.dyndns_on_demand_toggle').on('ifToggled', function(event) {
|
|||||||
applyChanges(postdata, $SCRIPT_ROOT + '/domain/' + domain + '/managesetting', true);
|
applyChanges(postdata, $SCRIPT_ROOT + '/domain/' + domain + '/managesetting', true);
|
||||||
});
|
});
|
||||||
|
|
||||||
// handle deletion of user
|
// handle deletion of domain
|
||||||
$(document.body).on('click', '.delete_domain', function() {
|
$(document.body).on('click', '.delete_domain', function() {
|
||||||
var modal = $("#modal_delete_domain");
|
var modal = $("#modal_delete_domain");
|
||||||
var domain = $(this).prop('id');
|
var domain = $(this).prop('id');
|
||||||
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('/admin/domain/' + domain + '/delete');
|
$.get($SCRIPT_ROOT + '/admin/domain/' + domain + '/delete');
|
||||||
modal.modal('hide');
|
modal.modal('hide');
|
||||||
window.location.href = '{{ url_for('dashboard') }}';
|
window.location.href = '{{ url_for('dashboard') }}';
|
||||||
})
|
})
|
||||||
@ -152,4 +152,4 @@ $(document.body).on('click', '.delete_domain', function() {
|
|||||||
</div>
|
</div>
|
||||||
<!-- /.modal-dialog -->
|
<!-- /.modal-dialog -->
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user