upgraded to yui 0.12.0
upgraded to yui-ext 0.33 rc2
This commit is contained in:
parent
62b3d90db7
commit
cfd09a5cb6
1271 changed files with 539033 additions and 0 deletions
23
www/extras/yui/examples/treeview/js/CheckOnClickNode.js
vendored
Normal file
23
www/extras/yui/examples/treeview/js/CheckOnClickNode.js
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */
|
||||
|
||||
YAHOO.example.CheckOnClickNode = function(oData, oParent, expanded, checked) {
|
||||
if (oParent) {
|
||||
this.init(oData, oParent, expanded);
|
||||
this.setUpLabel(oData);
|
||||
this.checked = checked;
|
||||
}
|
||||
};
|
||||
|
||||
YAHOO.example.CheckOnClickNode.prototype = new YAHOO.widget.TaskNode();
|
||||
|
||||
YAHOO.example.CheckOnClickNode.prototype.getCheckLink = function() {
|
||||
return "var n=YAHOO.widget.TreeView.getNode(\'" + this.tree.id + "\'," +
|
||||
this.index + "); " +
|
||||
"var r = n.checkClick(); " +
|
||||
"YAHOO.example.customCheckClickFunction(n);" +
|
||||
"return r;";
|
||||
};
|
||||
|
||||
YAHOO.example.customCheckClickFunction = function(node) {
|
||||
alert(node.checked + "(" + node.checkState + ")");
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue