From d99d0717165abd5c2c3a06bb3946c2d0ab6bd857 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 26 Jul 2017 13:03:48 +0200 Subject: [PATCH] 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') {