Beispiel #1
0
<script type="text/javascript" src="jquery/jquery.autocomplete.min.js"></script>

<script type="text/javascript">
$().ready(function(){
	$("#tasklist").sortable({cancel:'span,input,a,textarea', delay: 150, update:orderChanged, start:sortStart, items:'> :not(.task-completed)'});
	$("#tasklist").bind("click", tasklistClick);
	$("#edittags").autocomplete('ajax.php?suggestTags', {scroll: false, multiple: true, selectFirst:false, max:8, extraParams:{list:function(){return curList.id}}});
	$("#priopopup").mouseleave(function(){$(this).hide()});
	setSort(<?php 
echo $sort;
?>
,1);
<?php 
if ($needAuth) {
    echo "\tflag.needAuth = true;\n";
    if (!canAllRead()) {
        echo "\tflag.canAllRead = false;\n";
    }
    if (is_logged()) {
        echo "\tflag.isLogged = true;\n";
    }
    echo "\tupdateAccessStatus();\n";
}
echo "\tloadLists(1);\n";
?>
	preloadImg();
	$("#duedate").datepicker({dateFormat: '<?php 
echo $duedateformat;
?>
', firstDay: <?php 
echo $config['firstdayofweek'];
Beispiel #2
0
function check_read_access()
{
    if (canAllRead() || is_logged()) {
        return;
    }
    echo json_encode(array('total' => 0, 'list' => array(), 'denied' => 1));
    exit;
}