Commit 6d74d31a by Dányi Bence

webui: fix ajax path

parent f7e42155
......@@ -241,7 +241,7 @@ $(function() {
function new_vm(template_id) {
$.ajax({
type: 'POST',
url: 'ajax/vm/new/' + template_id + '/',
url: '/ajax/vm/new/' + template_id + '/',
success: function(data, b, xhrRequest) {
window.location.href = '/'; //xhrRequest.getResponseHeader("Location");
//alert(xhrRequest.getResponseHeader("Location"));
......
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