Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[webui] fix checkboxes being disabled when they haven't been
explicitly enabled
  • Loading branch information
Jalle19 authored and perexg committed Aug 7, 2014
1 parent 6d19440 commit 9dd2224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webui/static/checkcolumn/CheckColumn.js
Expand Up @@ -43,7 +43,7 @@ Ext.ux.grid.CheckColumn = Ext.extend(Ext.grid.Column, {
* Process and refire events routed from the GridView's processEvent method.
*/
processEvent : function(name, e, grid, rowIndex, colIndex){
if (!this.editable)
if (this.editable === false)
return false;
if (name == 'mousedown') {
var record = grid.store.getAt(rowIndex);
Expand All @@ -56,7 +56,7 @@ Ext.ux.grid.CheckColumn = Ext.extend(Ext.grid.Column, {

renderer : function(v, p, record){
p.css += ' x-grid3-check-col-td';
var cssClass = 'x-grid3-check-col{0}' + (!this.editable ? ' x-item-disabled' : '');
var cssClass = 'x-grid3-check-col{0}' + (this.editable === false ? ' x-item-disabled' : '');
return String.format('<div class="' + cssClass + '">&#160;</div>', v ? '-on' : '');
},

Expand Down

0 comments on commit 9dd2224

Please sign in to comment.