git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git]
/
examples
/
ux
/
CheckColumn.js
diff --git
a/examples/ux/CheckColumn.js
b/examples/ux/CheckColumn.js
index
3f117e3
..
59ceb99
100644
(file)
--- a/
examples/ux/CheckColumn.js
+++ b/
examples/ux/CheckColumn.js
@@
-1,6
+1,6
@@
/*!
/*!
- * Ext JS Library 3.
0.3
- * Copyright(c) 2006-20
09
Ext JS, LLC
+ * Ext JS Library 3.
1.1
+ * Copyright(c) 2006-20
10
Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
* licensing@extjs.com
* http://www.extjs.com/license
*/
@@
-59,7
+59,7
@@
Ext.ux.grid.CheckColumn.prototype ={
},
\r
\r
onMouseDown : function(e, t){
\r
},
\r
\r
onMouseDown : function(e, t){
\r
- if(
t.className && t.className.indexOf('x-grid3-cc-'+this.id) != -1
){
\r
+ if(
Ext.fly(t).hasClass(this.createId())
){
\r
e.stopEvent();
\r
var index = this.grid.getView().findRowIndex(t);
\r
var record = this.grid.store.getAt(index);
\r
e.stopEvent();
\r
var index = this.grid.getView().findRowIndex(t);
\r
var record = this.grid.store.getAt(index);
\r
@@
-69,7
+69,11
@@
Ext.ux.grid.CheckColumn.prototype ={
\r
renderer : function(v, p, record){
\r
p.css += ' x-grid3-check-col-td';
\r
\r
renderer : function(v, p, record){
\r
p.css += ' x-grid3-check-col-td';
\r
- return '<div class="x-grid3-check-col'+(v?'-on':'')+' x-grid3-cc-'+this.id+'"> </div>';
\r
+ return String.format('<div class="x-grid3-check-col{0} {1}"> </div>', v ? '-on' : '', this.createId());
\r
+ },
\r
+
\r
+ createId : function(){
\r
+ return 'x-grid3-cc-' + this.id;
\r
}
\r
};
\r
\r
}
\r
};
\r
\r