1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-06-28 15:43:15 +00:00

Merge branch 'master' into devel

This commit is contained in:
Jürgen Mang 2018-07-05 22:19:53 +02:00 committed by GitHub
commit 1c496d5e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {
var ajaxRequest=new XMLHttpRequest();
ajaxRequest.open('POST', '/api', true);