CC-4019: Library: When "Add content" is clicked, "Proccessing" image is keep
flickering - fixed
This commit is contained in:
parent
5f625fb19e
commit
9a14051f0b
1 changed files with 8 additions and 2 deletions
|
@ -678,8 +678,14 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
if (temp.length > 0) {
|
if (temp.length > 0) {
|
||||||
aData = temp.data("aData");
|
aData = temp.data("aData");
|
||||||
|
// max time interval
|
||||||
mod.timeout = setTimeout(mod.refresh, aData.refresh * 1000); //need refresh in milliseconds
|
// 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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue