X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/examples/ux/CheckColumn.js diff --git a/examples/ux/CheckColumn.js b/examples/ux/CheckColumn.js index 49b658b5..59ceb99d 100644 --- a/examples/ux/CheckColumn.js +++ b/examples/ux/CheckColumn.js @@ -1,6 +1,6 @@ /*! - * Ext JS Library 3.1.0 - * Copyright(c) 2006-2009 Ext JS, LLC + * Ext JS Library 3.1.1 + * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ @@ -59,7 +59,7 @@ Ext.ux.grid.CheckColumn.prototype ={ }, onMouseDown : function(e, t){ - if(t.className && t.className.indexOf('x-grid3-cc-'+this.id) != -1){ + if(Ext.fly(t).hasClass(this.createId())){ e.stopEvent(); var index = this.grid.getView().findRowIndex(t); var record = this.grid.store.getAt(index); @@ -69,7 +69,11 @@ Ext.ux.grid.CheckColumn.prototype ={ renderer : function(v, p, record){ p.css += ' x-grid3-check-col-td'; - return '
 
'; + return String.format('
 
', v ? '-on' : '', this.createId()); + }, + + createId : function(){ + return 'x-grid3-cc-' + this.id; } };