This commit is contained in:
2019-03-06 16:19:43 +01:00
parent 2fbb783f60
commit 1c278c681c
3 changed files with 18 additions and 5 deletions

View File

@ -103,8 +103,11 @@ var submit = () => {
http.onreadystatechange = function() {//Call a function when the state changes.
if(http.readyState == 4 && http.status == 200) {
// document.write(http.responseText);
let href = window.location.href.replace("edit/", "");
href.replace("new/", "");
let href = window.location.href;
href = href.split("/");
href.pop();
href.pop();
href = href.join("/");
window.location = href;
}
}