add classes to style fake checkboxes based on checkstate

pull/1/head
ansuz 7 years ago
parent 304d37a334
commit d7d7f212bb

@ -43,7 +43,7 @@ define([
var makeCheckbox = function (id, cb) {
var entry = APP.lm.proxy.data[id];
var checked = entry.state === 1? 'fa-check-square-o': 'fa-square-o';
var checked = entry.state === 1? 'cp-task-checkbox-checked fa-check-square-o': 'cp-task-checkbox-unchecked fa-square-o';
return $('<span>', {
'class': 'cp-task-checkbox fa ' + checked,

@ -77,4 +77,10 @@ body {
font-size: 45px;
width: 45px;
}
.cp-task-checkbox-checked {
}
.cp-task-checkbox-unchecked {
}
}

Loading…
Cancel
Save