update tasks in menu only if logged in

This commit is contained in:
Uwe Steinmann 2017-01-11 18:17:52 +01:00
parent 32da91d145
commit ba621af162
2 changed files with 3 additions and 4 deletions

View File

@ -1015,8 +1015,4 @@ $(document).ready(function() { /* {{{ */
});
timeOutId = setTimeout(checkTasks, 10000);
}
$(document).ready(function() {
//$("#menu-tasks > ul > li").checkTasks();
checkTasks();
});

View File

@ -133,6 +133,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
echo '<script src="../styles/'.$this->theme.'/chosen/js/chosen.jquery.min.js"></script>'."\n";
echo '<script src="../styles/'.$this->theme.'/select2/js/select2.min.js"></script>'."\n";
echo '<script src="../styles/'.$this->theme.'/application.js"></script>'."\n";
if(isset($this->params['user']) && $this->params['user']) {
$this->addFooterJS('checkTasks();');
}
if($this->footerjs) {
$jscode = "$(document).ready(function () {\n";
foreach($this->footerjs as $script) {