WIP checkbox titles
This commit is contained in:
parent
e6031c2209
commit
d99d071716
@ -52,8 +52,13 @@ define([
|
|||||||
var entry = APP.lm.proxy.data[id];
|
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 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>', {
|
return $('<span>', {
|
||||||
'class': 'cp-task-checkbox fa ' + checked,
|
'class': 'cp-task-checkbox fa ' + checked,
|
||||||
|
//title: title,
|
||||||
}).on('click', function () {
|
}).on('click', function () {
|
||||||
entry.state = (entry.state + 1) % 2;
|
entry.state = (entry.state + 1) % 2;
|
||||||
if (typeof(cb) === 'function') {
|
if (typeof(cb) === 'function') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user