Modification de l'interval

This commit is contained in:
Michael RICOIS 2012-01-30 15:21:01 +00:00
parent e86cacf90b
commit 011fb14516

View File

@ -11,12 +11,12 @@ $(document).ready(function(){
});
$(document).focusin(function(){
timer = setInterval(updateInfo, 30000);
timer = setInterval(updateInfo, 10000);
});
$(document).focusout(function(){
clearInterval(timer);
});
timer = setInterval(updateInfo, 30000);
timer = setInterval(updateInfo, 10000);
});
var timer;