|
|
@ -29,7 +29,11 @@ function changeInterval(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function newInterval(){
|
|
|
|
function newInterval(){
|
|
|
|
refreshInterval=document.getElementById("nextUpdate").value;
|
|
|
|
var newInterval=document.getElementById("nextUpdate").value;
|
|
|
|
|
|
|
|
// make sure that only positive intervals can be set
|
|
|
|
|
|
|
|
if(newInterval>0){
|
|
|
|
|
|
|
|
refreshInterval=newInterval;
|
|
|
|
|
|
|
|
}
|
|
|
|
refresh();
|
|
|
|
refresh();
|
|
|
|
countInterval=window.setInterval("countdown()", 1000);
|
|
|
|
countInterval=window.setInterval("countdown()", 1000);
|
|
|
|
changing=false;
|
|
|
|
changing=false;
|
|
|
@ -37,7 +41,7 @@ function newInterval(){
|
|
|
|
function countdown(){
|
|
|
|
function countdown(){
|
|
|
|
if(statusLoaded && queueLoaded){
|
|
|
|
if(statusLoaded && queueLoaded){
|
|
|
|
document.getElementById("nextUpdate").value=wait;
|
|
|
|
document.getElementById("nextUpdate").value=wait;
|
|
|
|
wait--;
|
|
|
|
wait--;
|
|
|
|
if(wait==0){
|
|
|
|
if(wait==0){
|
|
|
|
refresh();
|
|
|
|
refresh();
|
|
|
|
}
|
|
|
|
}
|
|
|
|