1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-11-01 06:13:04 +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

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);