@ -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)
@ -63,6 +63,11 @@ body {
align-items: center;
background-color: white;
&.cp-task-complete {
background-color: #f0f0f0;
color: #777;
.cp-task-text {
margin: @spacing;
flex: 1;