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:
Ozzie Isaacs
2023-03-25 12:34:16 +01:00
parent 2b9f920454
commit 321db4d712
8 changed files with 403 additions and 372 deletions

View File

@@ -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}),
});
});