Reduced the Now Playing screen AJAX on load from 9 to 2.
This commit is contained in:
parent
095ca86b34
commit
b11e98ea24
4 changed files with 12 additions and 8 deletions
|
@ -439,13 +439,14 @@ var AIRTIME = (function(AIRTIME){
|
|||
"fnStateSave": function fnStateSave(oSettings, oData) {
|
||||
|
||||
localStorage.setItem('datatables-timeline', JSON.stringify(oData));
|
||||
|
||||
|
||||
/*
|
||||
$.ajax({
|
||||
url: baseUrl+"usersettings/set-timeline-datatable",
|
||||
type: "POST",
|
||||
data: {settings : oData, format: "json"},
|
||||
dataType: "json"
|
||||
});
|
||||
});*/
|
||||
},
|
||||
"fnStateLoad": function fnBuilderStateLoad(oSettings) {
|
||||
var settings = localStorage.getItem('datatables-timeline');
|
||||
|
@ -466,13 +467,14 @@ var AIRTIME = (function(AIRTIME){
|
|||
a[i] = (a[i] === "true") ? true : false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
a = oData.ColReorder;
|
||||
for (i = 0, length = a.length; i < length; i++) {
|
||||
if (typeof(a[i]) === "string") {
|
||||
a[i] = parseInt(a[i], 10);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
oData.iCreate = parseInt(oData.iCreate, 10);
|
||||
},
|
||||
|
|
|
@ -328,10 +328,10 @@ AIRTIME = (function(AIRTIME) {
|
|||
setTimeout(checkScheduleUpdates, 5000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//check if the timeline view needs updating.
|
||||
checkScheduleUpdates();
|
||||
//check if the timeline view needs updating.
|
||||
setTimeout(checkScheduleUpdates, 5000);
|
||||
}
|
||||
};
|
||||
|
||||
mod.onResize = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue