[webui] fix checkboxes being disabled when they haven't been
explicitly enabled
This commit is contained in:
parent
6d19440706
commit
9dd2224c8b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
@ -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 + '"> </div>', v ? '-on' : '');
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue