mirror of
https://github.com/krateng/maloja.git
synced 2025-05-31 20:24:21 -04:00
Update remaining deprecated API URLs, GH-368
This commit is contained in:
parent
76c013e130
commit
cc64c894f0
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
|
|
||||||
var xhttp = new XMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
xhttp.open("POST","/api/newrule?", true);
|
xhttp.open("POST","/apis/mlj_1/newrule?", true);
|
||||||
xhttp.send(keys);
|
xhttp.send(keys);
|
||||||
e = arguments[0];
|
e = arguments[0];
|
||||||
line = e.parentNode;
|
line = e.parentNode;
|
||||||
@ -25,7 +25,7 @@
|
|||||||
function fullrebuild() {
|
function fullrebuild() {
|
||||||
|
|
||||||
var xhttp = new XMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
xhttp.open("POST","/api/rebuild", true);
|
xhttp.open("POST","/apis/mlj_1/rebuild", true);
|
||||||
xhttp.send();
|
xhttp.send();
|
||||||
window.location = "/wait";
|
window.location = "/wait";
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
keys = "filename=" + encodeURIComponent(filename);
|
keys = "filename=" + encodeURIComponent(filename);
|
||||||
console.log(keys);
|
console.log(keys);
|
||||||
var xhttp = new XMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
xhttp.open("POST","/api/importrules", true);
|
xhttp.open("POST","/apis/mlj_1/importrules", true);
|
||||||
xhttp.send(keys);
|
xhttp.send(keys);
|
||||||
|
|
||||||
e.innerHTML = e.innerHTML.replace("Add","Remove");
|
e.innerHTML = e.innerHTML.replace("Add","Remove");
|
||||||
@ -36,7 +36,7 @@
|
|||||||
keys = "remove&filename=" + encodeURIComponent(filename);
|
keys = "remove&filename=" + encodeURIComponent(filename);
|
||||||
|
|
||||||
var xhttp = new XMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
xhttp.open("POST","/api/importrules", true);
|
xhttp.open("POST","/apis/mlj_1/importrules", true);
|
||||||
xhttp.send(keys);
|
xhttp.send(keys);
|
||||||
|
|
||||||
e.innerHTML = e.innerHTML.replace("Remove","Add");
|
e.innerHTML = e.innerHTML.replace("Remove","Add");
|
||||||
|
@ -186,7 +186,7 @@ function search_manualscrobbling(searchfield) {
|
|||||||
else {
|
else {
|
||||||
xhttp = new XMLHttpRequest();
|
xhttp = new XMLHttpRequest();
|
||||||
xhttp.onreadystatechange = searchresult_manualscrobbling;
|
xhttp.onreadystatechange = searchresult_manualscrobbling;
|
||||||
xhttp.open("GET","/api/search?max=5&query=" + encodeURIComponent(txt), true);
|
xhttp.open("GET","/apis/mlj_1/search?max=5&query=" + encodeURIComponent(txt), true);
|
||||||
xhttp.send();
|
xhttp.send();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
function upload(encodedentity,b64) {
|
function upload(encodedentity,b64) {
|
||||||
neo.xhttprequest("/api/addpicture?" + encodedentity,{"b64":b64},"POST")
|
neo.xhttprequest("/apis/mlj_1/addpicture?" + encodedentity,{"b64":b64},"POST")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user