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.0.3 - Released 10/11/2009
[extjs.git]
/
src
/
widgets
/
tree
/
TreeNodeUI.js
diff --git
a/src/widgets/tree/TreeNodeUI.js
b/src/widgets/tree/TreeNodeUI.js
index
e3c4dff
..
1be1da6
100644
(file)
--- a/
src/widgets/tree/TreeNodeUI.js
+++ b/
src/widgets/tree/TreeNodeUI.js
@@
-1,5
+1,5
@@
/*!
/*!
- * Ext JS Library 3.0.
0
+ * Ext JS Library 3.0.
3
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
@@
-134,10
+134,7
@@
Ext.tree.TreeNodeUI.prototype = {
this.node.on("move", this.onMove, this);
\r
\r
if(this.node.disabled){
\r
this.node.on("move", this.onMove, this);
\r
\r
if(this.node.disabled){
\r
- this.addClass("x-tree-node-disabled");
\r
- if (this.checkbox) {
\r
- this.checkbox.disabled = true;
\r
- }
\r
+ this.onDisableChange(this.node, true);
\r
}
\r
if(this.node.hidden){
\r
this.hide();
\r
}
\r
if(this.node.hidden){
\r
this.hide();
\r
@@
-222,13
+219,15
@@
Ext.tree.TreeNodeUI.prototype = {
if(this.disabled){
\r
return;
\r
}
\r
if(this.disabled){
\r
return;
\r
}
\r
- if(this.checkbox){
\r
- this.toggleCheck();
\r
- }
\r
- if(!this.animating && this.node.isExpandable()){
\r
- this.node.toggle();
\r
+ if(this.fireEvent("beforedblclick", this.node, e) !== false){
\r
+ if(this.checkbox){
\r
+ this.toggleCheck();
\r
+ }
\r
+ if(!this.animating && this.node.isExpandable()){
\r
+ this.node.toggle();
\r
+ }
\r
+ this.fireEvent("dblclick", this.node, e);
\r
}
\r
}
\r
- this.fireEvent("dblclick", this.node, e);
\r
},
\r
\r
onOver : function(e){
\r
},
\r
\r
onOver : function(e){
\r