From a15ff9ba2ab970d5e35cd3188efec3dd3e8a774e Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 26 Jul 2017 11:05:54 +0200 Subject: [PATCH 1/6] hide dates in todo --- www/todo/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/todo/main.js b/www/todo/main.js index 0b54a96e8..3a7921f47 100644 --- a/www/todo/main.js +++ b/www/todo/main.js @@ -79,9 +79,10 @@ define([ $('', { 'class': 'cp-task-text' }) .text(entry.task) .appendTo($taskDiv); + /* $('', { 'class': 'cp-task-date' }) - .text(new Date(entry.ctime).toLocaleString()) - .appendTo($taskDiv); + .text(new Date(entry.ctime).toLocaleDateString()) + .appendTo($taskDiv);*/ $('
From e6031c2209c24f3087ef68fe385e5877e4531cf6 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 26 Jul 2017 13:03:25 +0200 Subject: [PATCH 4/6] slightly better styles --- www/todo/todo.less | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/todo/todo.less b/www/todo/todo.less index e2b7c15a2..73d963ed2 100644 --- a/www/todo/todo.less +++ b/www/todo/todo.less @@ -80,10 +80,15 @@ body { } .cp-task-remove { margin: @spacing; + cursor: pointer; } .cp-task-checkbox { font-size: 45px; width: 45px; + cursor: pointer; + &:hover { + color: #999; + } } .cp-task-checkbox-checked { From d99d0717165abd5c2c3a06bb3946c2d0ab6bd857 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 26 Jul 2017 13:03:48 +0200 Subject: [PATCH 5/6] WIP checkbox titles --- www/todo/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/todo/main.js b/www/todo/main.js index be4ae48b8..749fdfe4d 100644 --- a/www/todo/main.js +++ b/www/todo/main.js @@ -52,8 +52,13 @@ define([ var entry = APP.lm.proxy.data[id]; var checked = entry.state === 1? 'cp-task-checkbox-checked fa-check-square-o': 'cp-task-checkbox-unchecked fa-square-o'; + var title = entry.state === 1? + Messages.todo_markAsIncompleteTitle: + Messages.todo_markAsCompleteTitle; + return $('', { 'class': 'cp-task-checkbox fa ' + checked, + //title: title, }).on('click', function () { entry.state = (entry.state + 1) % 2; if (typeof(cb) === 'function') { From 85366f2368a768c2ba5e15e7884c14b8949147cf Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 26 Jul 2017 13:04:23 +0200 Subject: [PATCH 6/6] use new translations --- www/todo/inner.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/todo/inner.html b/www/todo/inner.html index 8ae722a7c..6fd175357 100644 --- a/www/todo/inner.html +++ b/www/todo/inner.html @@ -11,7 +11,7 @@
- +