Commit 0757de16 by Bence Dányi

webui: fix template deletion

fixes #115
parent 29277dd8
......@@ -410,7 +410,7 @@ $(function() {
function delete_template_confirm(url, id, name) {
confirm_message = interpolate(gettext("Are you sure deleting this %s template?"), ["<strong>" + name + "</strong>"])
vm_confirm_popup(confirm_message, gettext("Delete"), function() {
delete_template(id)
delete_template(url, id)
})
}
/**
......@@ -428,7 +428,8 @@ $(function() {
alert(data['responseText']);
},
200: function(data) {
$("#t" + id).remove()
$("#t" + id).remove();
alert(gettext('Template deletion successful!'));
},
}
......
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