Skip to content

Commit

Permalink
display checkbox values correctly in list views. (#1178)
Browse files Browse the repository at this point in the history
fixes #1177
  • Loading branch information
laszlokorte authored and wellingguzman committed Jun 19, 2016
1 parent bf52351 commit bb359eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core-ui/checkbox.js
Expand Up @@ -72,7 +72,7 @@ define(['app','backbone'], function(app, Backbone) {
};

Module.list = function(options) {
var val = (options.value) ? '<input type="checkbox" checked="true" disabled>' : '<input type="checkbox" disabled>';
var val = (parseInt(options.value, 10) === 1) ? '<input type="checkbox" checked="true" disabled>' : '<input type="checkbox" disabled>';
//var val = options.value.toString().replace(/<(?:.|\n)*?>/gm, '').substr(0,100);
return val;//val;
};
Expand Down

0 comments on commit bb359eb

Please sign in to comment.