mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed old url references
This commit is contained in:
parent
374fc6d885
commit
3ba7e4cfef
@ -21,7 +21,7 @@ function saveAPIkey() {
|
||||
|
||||
function checkAPIkey() {
|
||||
saveAPIkey()
|
||||
url = "/db/test?key=" + document.getElementById("apikey").value
|
||||
url = "/api/test?key=" + document.getElementById("apikey").value
|
||||
var xhttp = new XMLHttpRequest();
|
||||
xhttp.onreadystatechange = function() {
|
||||
if (this.readyState == 4 && (this.status == 204 || this.status == 205)) {
|
||||
|
@ -29,7 +29,7 @@
|
||||
keys += "&key=" + encodeURIComponent(apikey)
|
||||
console.log(keys)
|
||||
var xhttp = new XMLHttpRequest();
|
||||
xhttp.open("POST","/db/importrules", true);
|
||||
xhttp.open("POST","/api/importrules", true);
|
||||
xhttp.send(keys);
|
||||
|
||||
e.innerHTML = e.innerHTML.replace("Add","Remove")
|
||||
@ -45,7 +45,7 @@
|
||||
keys += "&key=" + encodeURIComponent(apikey)
|
||||
|
||||
var xhttp = new XMLHttpRequest();
|
||||
xhttp.open("POST","/db/importrules", true);
|
||||
xhttp.open("POST","/api/importrules", true);
|
||||
xhttp.send(keys);
|
||||
|
||||
e.innerHTML = e.innerHTML.replace("Remove","Add")
|
||||
|
Loading…
Reference in New Issue
Block a user