Merge pull request #681 from eht16/fix_create_template_from_zone_url

Remove $SCRIPT_ROOT from 'admin.create_template_from_zone' URL
This commit is contained in:
Khanh Ngo 2020-04-30 09:12:04 +07:00 committed by GitHub
commit bbd00865dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@
data['name'] = modal.find('#template_name').val();
data['description'] = modal.find('#template_description').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.find('#button_close').click(function() {