CC-4019: Library: When "Add content" is clicked, "Proccessing" image is keep

flickering

- fixed
This commit is contained in:
James 2012-06-26 16:55:43 -04:00
parent 5f625fb19e
commit 9a14051f0b
1 changed files with 8 additions and 2 deletions

View File

@ -678,8 +678,14 @@ var AIRTIME = (function(AIRTIME){
if (temp.length > 0) {
aData = temp.data("aData");
mod.timeout = setTimeout(mod.refresh, aData.refresh * 1000); //need refresh in milliseconds
// max time interval
// setTimeout allow only up to 2^21 millisecs timeout value
maxRefreshInterval = Math.pow(2, 31) - 1;
refreshInterval = aData.refresh * 1000;
if(refreshInterval > maxRefreshInterval){
refreshInterval = maxRefreshInterval;
}
mod.timeout = setTimeout(mod.refresh, refreshInterval); //need refresh in milliseconds
break;
}
}