From 1d575dca5ec0c30df59b8bb3e687aaf0405e5eb9 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Thu, 19 Aug 2010 15:19:46 +0400 Subject: [PATCH] + remember all notes visible or hidden during the session --- src/ajax.php | 2 +- src/mytinytodo.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ajax.php b/src/ajax.php index 552ca76..508de9a 100644 --- a/src/ajax.php +++ b/src/ajax.php @@ -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, ); } diff --git a/src/mytinytodo.js b/src/mytinytodo.js index 53be47a..3527f64 100644 --- a/src/mytinytodo.js +++ b/src/mytinytodo.js @@ -642,8 +642,8 @@ function prepareTaskStr(item, noteExp) { var id = item.id; var prio = item.prio; - return '
  • '+ + return '
  • ' + '
    '+"\n"+ '
    '+ '
    '+"\n"+ @@ -897,6 +897,7 @@ function toggleAllNotes(show) if(show) $('#taskrow_'+id).addClass('task-expanded'); else $('#taskrow_'+id).removeClass('task-expanded'); } + curList.showNotes = show; };