also style the whole box

This commit is contained in:
ansuz
2017-07-26 10:43:37 +02:00
parent d7d7f212bb
commit f0581f2cf4
2 changed files with 13 additions and 2 deletions

View File

@@ -65,11 +65,17 @@ define([
'class': 'cp-task'
}).appendTo($list);
makeCheckbox(el, function (state) {
var $box = makeCheckbox(el, function (state) {
display();
}).appendTo($taskDiv);
})
.appendTo($taskDiv);
var entry = APP.lm.proxy.data[el];
if (entry.state) {
$taskDiv.addClass('cp-task-complete');
}
$('<span>', { 'class': 'cp-task-text' })
.text(entry.task)
.appendTo($taskDiv);