mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
parent
f39108d2e7
commit
66e9c42033
2 changed files with 23 additions and 3 deletions
|
|
@ -222,6 +222,26 @@ function enable_rich_interaction(){
|
|||
drop: drop_todo,
|
||||
hoverClass: 'hover'
|
||||
});
|
||||
|
||||
/* Reset auto updater */
|
||||
field_touched = false;
|
||||
}
|
||||
|
||||
/* Auto-refresh */
|
||||
|
||||
function setup_auto_refresh(interval){
|
||||
field_touched = false;
|
||||
function refresh_page() {
|
||||
if(!field_touched){
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
setTimeout(refresh_page, interval);
|
||||
$(function(){
|
||||
$("input").live('keydown', function(){
|
||||
field_touched = true;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue