WIP checkbox titles

This commit is contained in:
ansuz 2017-07-26 13:03:48 +02:00
parent e6031c2209
commit d99d071716
1 changed files with 5 additions and 0 deletions

View File

@ -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 $('<span>', {
'class': 'cp-task-checkbox fa ' + checked,
//title: title,
}).on('click', function () {
entry.state = (entry.state + 1) % 2;
if (typeof(cb) === 'function') {