add javascript for continuosily upating task list

This commit is contained in:
Uwe Steinmann 2015-07-08 18:59:28 +02:00
parent a76e1de49e
commit ae288c83f2

View File

@ -693,5 +693,12 @@ $(document).ready(function() {
e.stopPropagation();
e.preventDefault();
});
var checkTasks = function() {
$("#menu-tasks > ul > li").html('Loading').hide().load('../op/op.Ajax.php?command=view&view=menutasks').fadeIn('500')
timeOutId = setTimeout(checkTasks, 10000);
}
// timeOutId = setTimeout(checkTasks, 30000);
checkTasks();
});