CC-4943: Raspberry Pi optimization: don't create new background AJAX request until the previous one has returned
-fixed
This commit is contained in:
parent
30c47df93d
commit
bb7e56e39e
7 changed files with 22 additions and 12 deletions
|
@ -360,13 +360,15 @@ function controlSwitchLight(){
|
|||
}
|
||||
|
||||
function getScheduleFromServer(){
|
||||
$.ajax({ url: baseUrl+"Schedule/get-current-playlist/format/json", dataType:"json", success:function(data){
|
||||
$.ajax({ url: baseUrl+"Schedule/get-current-playlist/format/json",
|
||||
dataType:"json",
|
||||
success:function(data){
|
||||
parseItems(data.entries);
|
||||
parseSourceStatus(data.source_status);
|
||||
parseSwitchStatus(data.switch_status);
|
||||
showName = data.show_name;
|
||||
setTimeout(getScheduleFromServer, serverUpdateInterval);
|
||||
}, error:function(jqXHR, textStatus, errorThrown){}});
|
||||
setTimeout(getScheduleFromServer, serverUpdateInterval);
|
||||
}
|
||||
|
||||
function setupQtip(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue