upgraded yui to 2.2.2 and yui-ext to 1.0.1a

This commit is contained in:
JT Smith 2007-07-05 04:23:55 +00:00
parent 4d9af2c691
commit 547ced6500
1992 changed files with 645731 additions and 0 deletions

View 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 + ")");
};