mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
update tasks in menu only if logged in
This commit is contained in:
parent
32da91d145
commit
ba621af162
|
@ -1015,8 +1015,4 @@ $(document).ready(function() { /* {{{ */
|
|||
});
|
||||
timeOutId = setTimeout(checkTasks, 10000);
|
||||
}
|
||||
$(document).ready(function() {
|
||||
//$("#menu-tasks > ul > li").checkTasks();
|
||||
checkTasks();
|
||||
});
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user