mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-30 15:05:39 +00:00
Remove $SCRIPT_ROOT from 'admin.create_template_from_zone' URL
As the URL here is contructed from Flask's "url_for" which already takes the script root into account, we do not need to add it here explicitly. This would result in a duplicate script root otherwise.
This commit is contained in:
parent
f2704649f1
commit
bc2e7c9786
@ -251,7 +251,7 @@
|
|||||||
data['name'] = modal.find('#template_name').val();
|
data['name'] = modal.find('#template_name').val();
|
||||||
data['description'] = modal.find('#template_description').val();
|
data['description'] = modal.find('#template_description').val();
|
||||||
data['domain'] = modal.find('#domain').val();
|
data['domain'] = modal.find('#domain').val();
|
||||||
applyChanges(data, $SCRIPT_ROOT + "{{ url_for('admin.create_template_from_zone') }}", true);
|
applyChanges(data, "{{ url_for('admin.create_template_from_zone') }}", true);
|
||||||
modal.modal('hide');
|
modal.modal('hide');
|
||||||
})
|
})
|
||||||
modal.find('#button_close').click(function() {
|
modal.find('#button_close').click(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user