mirror of
https://github.com/SuperBFG7/ympd
synced 2024-10-01 07:20:42 +00:00
Merge branch 'master' into devel
This commit is contained in:
commit
1c496d5e41
@ -1165,6 +1165,14 @@ function showMenu(el) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function shuffleQueue() {
|
||||||
|
sendAPI({"cmd":"MPD_API_SEND_SHUFFLE"});
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearQueue() {
|
||||||
|
sendAPI({"cmd":"MPD_API_RM_ALL"});
|
||||||
|
}
|
||||||
|
|
||||||
function sendAPI(request, callback) {
|
function sendAPI(request, callback) {
|
||||||
var ajaxRequest=new XMLHttpRequest();
|
var ajaxRequest=new XMLHttpRequest();
|
||||||
ajaxRequest.open('POST', '/api', true);
|
ajaxRequest.open('POST', '/api', true);
|
||||||
|
Loading…
Reference in New Issue
Block a user