use setInterval rather than setTimeout, cosmetic fixes
This commit is contained in:
parent
a58a957b28
commit
92a14df635
@ -50,11 +50,10 @@
|
||||
.fail(function( data ) {
|
||||
$('#response').text('myip failed');
|
||||
});
|
||||
setTimeout('checkIP', 300000); // repeat in N ms
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
checkIP();
|
||||
setInterval(checkIP, 300000); // repeat every N ms
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user