+ remember all notes visible or hidden during the session

This commit is contained in:
Max Pozdeev 2010-08-19 15:19:46 +04:00
parent da768d6cf4
commit 1d575dca5e
2 changed files with 4 additions and 3 deletions

View file

@ -831,7 +831,7 @@ function prepareList($row)
'sort' => (int)$row['sorting'],
'published' => $row['published'] ? 1 :0,
'showCompl' => $taskview & 1 ? 1 : 0,
// 'showNotes' => $taskview & 2 ? 1 : 0,
'showNotes' => $taskview & 2 ? 1 : 0,
);
}

View file

@ -642,8 +642,8 @@ function prepareTaskStr(item, noteExp)
{
var id = item.id;
var prio = item.prio;
return '<li id="taskrow_'+id+'" class="'+(item.compl?'task-completed ':'')+item.dueClass+(item.note!=''?' task-has-note':'')+(noteExp?' task-expanded':'')+
prepareTagsClass(item.tags_ids) + '">'+
return '<li id="taskrow_'+id+'" class="' + (item.compl?'task-completed ':'') + item.dueClass + (item.note!=''?' task-has-note':'') +
((curList.showNotes && item.note != '') || noteExp ? ' task-expanded' : '') + prepareTagsClass(item.tags_ids) + '">' +
'<div class="task-actions"><a href="#" class="taskactionbtn"></a></div>'+"\n"+
'<div class="task-left"><div class="task-toggle"></div>'+
'<input type="checkbox" '+(flag.readOnly?'disabled="disabled"':'')+(item.compl?'checked="checked"':'')+'/></div>'+"\n"+
@ -897,6 +897,7 @@ function toggleAllNotes(show)
if(show) $('#taskrow_'+id).addClass('task-expanded');
else $('#taskrow_'+id).removeClass('task-expanded');
}
curList.showNotes = show;
};