CC-3735 : Now Playing: Browser(Firefox) Mem usage goes high when play a show with hundreds of songs more than 3 hours
This commit is contained in:
parent
af1b5d3f7a
commit
b5b24ae8f1
3 changed files with 13 additions and 13 deletions
|
@ -50,6 +50,11 @@ var AIRTIME = (function(AIRTIME){
|
||||||
return mod.showInstances;
|
return mod.showInstances;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mod.refresh = function() {
|
||||||
|
mod.resetTimestamp();
|
||||||
|
oSchedTable.fnDraw();
|
||||||
|
};
|
||||||
|
|
||||||
mod.checkTrimButton = function() {
|
mod.checkTrimButton = function() {
|
||||||
$over = $sbTable.find(".sb-over");
|
$over = $sbTable.find(".sb-over");
|
||||||
|
|
||||||
|
@ -499,7 +504,6 @@ var AIRTIME = (function(AIRTIME){
|
||||||
var wrapperDiv,
|
var wrapperDiv,
|
||||||
markerDiv,
|
markerDiv,
|
||||||
$td,
|
$td,
|
||||||
$tr,
|
|
||||||
aData,
|
aData,
|
||||||
elements,
|
elements,
|
||||||
i, length, temp,
|
i, length, temp,
|
||||||
|
@ -570,11 +574,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
if (temp.length > 0) {
|
if (temp.length > 0) {
|
||||||
aData = temp.data("aData");
|
aData = temp.data("aData");
|
||||||
|
|
||||||
setTimeout(function(){
|
setTimeout(mod.refresh, aData.refresh * 1000); //need refresh in milliseconds
|
||||||
mod.resetTimestamp();
|
|
||||||
oSchedTable.fnDraw();
|
|
||||||
}, aData.refresh * 1000); //need refresh in milliseconds
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,8 +206,7 @@ AIRTIME = (function(AIRTIME) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//check if the timeline viewed needs updating.
|
function checkScheduleUpdates(){
|
||||||
setInterval(function(){
|
|
||||||
var data = {},
|
var data = {},
|
||||||
oTable = $('#show_builder_table').dataTable(),
|
oTable = $('#show_builder_table').dataTable(),
|
||||||
fn = oTable.fnSettings().fnServerData,
|
fn = oTable.fnSettings().fnServerData,
|
||||||
|
@ -236,9 +235,10 @@ AIRTIME = (function(AIRTIME) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
}, 5 * 1000); //need refresh in milliseconds
|
//check if the timeline view needs updating.
|
||||||
|
setInterval(checkScheduleUpdates, 5 * 1000); //need refresh in milliseconds
|
||||||
};
|
};
|
||||||
|
|
||||||
mod.onResize = function() {
|
mod.onResize = function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue