add classes to style fake checkboxes based on checkstate

This commit is contained in:
ansuz 2017-07-26 10:21:32 +02:00
parent 304d37a334
commit d7d7f212bb
2 changed files with 7 additions and 1 deletions

View File

@ -43,7 +43,7 @@ define([
var makeCheckbox = function (id, cb) { var makeCheckbox = function (id, cb) {
var entry = APP.lm.proxy.data[id]; 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>', { return $('<span>', {
'class': 'cp-task-checkbox fa ' + checked, 'class': 'cp-task-checkbox fa ' + checked,

View File

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