Optimisation

This commit is contained in:
Sebastien 2018-11-22 15:41:11 +02:00
parent 45eab633cc
commit 7cb32de495

View File

@ -167,7 +167,14 @@ function getCurentMusic() {
} }
if (switchAutoFlow.is(':checked') != data.autoflow) if (switchAutoFlow.is(':checked') != data.autoflow)
switchAutoFlow.prop('checked', data.autoflow); switchAutoFlow.prop('checked', data.autoflow);
getPlayList(); if(data.state !== "DISCONNECTED" && data.state !== "STOP")
getPlayList();
else{
if (loadingFlag) {
modal_loading.close();
loadingFlag = false;
}
}
}) })
.fail(function (data) { .fail(function (data) {