Commit 32159b2e by Bence Dányi

webui: fix template editing when template name does not change

parent f200b4ba
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
'type': 'GET', 'type': 'GET',
'url': '{% url one.views.ajax_template_name_unique %}?name=' + $("#new-template-name").val(), 'url': '{% url one.views.ajax_template_name_unique %}?name=' + $("#new-template-name").val(),
'success': function(data, b, c) { 'success': function(data, b, c) {
if (data == "True" || s == original) { if (data == "True" || $("#new-template-name").val() == original) {
$("#template-wizard").unbind('submit').submit() $("#template-wizard").unbind('submit').submit()
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment