Refactored send email by make use of ajax calls instead of posting the page
Always use getPath instead of pathname
This commit is contained in:
@@ -49,7 +49,7 @@ $(function() {
|
||||
method: "post",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
url: window.location.pathname + "/../ajax/canceltask",
|
||||
url: getPath() + "/../ajax/canceltask",
|
||||
data: JSON.stringify({"task_id": taskId}),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user