mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
+ remember all notes visible or hidden during the session
This commit is contained in:
parent
da768d6cf4
commit
1d575dca5e
2 changed files with 4 additions and 3 deletions
|
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue