id int32 0 58k | repo stringlengths 5 67 | path stringlengths 4 116 | func_name stringlengths 0 58 | original_string stringlengths 52 373k | language stringclasses 1
value | code stringlengths 52 373k | code_tokens list | docstring stringlengths 4 11.8k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 86 226 |
|---|---|---|---|---|---|---|---|---|---|---|---|
42,600 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(fn) {
var values = [];
for (var i in this._nodes) {
if (this._nodes.hasOwnProperty(i)) {
var n = this._nodes[i];
if (fn(n)) {
values.push(n);
}
}
}
return (values.length) ? values : null;... | javascript | function(fn) {
var values = [];
for (var i in this._nodes) {
if (this._nodes.hasOwnProperty(i)) {
var n = this._nodes[i];
if (fn(n)) {
values.push(n);
}
}
}
return (values.length) ? values : null;... | [
"function",
"(",
"fn",
")",
"{",
"var",
"values",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"i",
"in",
"this",
".",
"_nodes",
")",
"{",
"if",
"(",
"this",
".",
"_nodes",
".",
"hasOwnProperty",
"(",
"i",
")",
")",
"{",
"var",
"n",
"=",
"this",
".... | Returns a collection of nodes that have passed the test function
passed as its only argument.
The function will receive a reference to each node to be tested.
@method getNodesBy
@param {function} a boolean function that receives a Node instance and returns true to add the node to the results list
@return {Array} the ma... | [
"Returns",
"a",
"collection",
"of",
"nodes",
"that",
"have",
"passed",
"the",
"test",
"function",
"passed",
"as",
"its",
"only",
"argument",
".",
"The",
"function",
"will",
"receive",
"a",
"reference",
"to",
"each",
"node",
"to",
"be",
"tested",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L994-L1005 | |
42,601 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(el) {
var p=el, m, re=/ygtv([^\d]*)(.*)/;
do {
if (p && p.id) {
m = p.id.match(re);
if (m && m[2]) {
return this.getNodeByIndex(m[2]);
}
}
p = p.parentNode;
if (!p || !p.tagN... | javascript | function(el) {
var p=el, m, re=/ygtv([^\d]*)(.*)/;
do {
if (p && p.id) {
m = p.id.match(re);
if (m && m[2]) {
return this.getNodeByIndex(m[2]);
}
}
p = p.parentNode;
if (!p || !p.tagN... | [
"function",
"(",
"el",
")",
"{",
"var",
"p",
"=",
"el",
",",
"m",
",",
"re",
"=",
"/",
"ygtv([^\\d]*)(.*)",
"/",
";",
"do",
"{",
"if",
"(",
"p",
"&&",
"p",
".",
"id",
")",
"{",
"m",
"=",
"p",
".",
"id",
".",
"match",
"(",
"re",
")",
";",
... | Returns the treeview node reference for an ancestor element
of the node, or null if it is not contained within any node
in this tree.
@method getNodeByElement
@param el {HTMLElement} the element to test
@return {YAHOO.widget.Node} a node reference or null | [
"Returns",
"the",
"treeview",
"node",
"reference",
"for",
"an",
"ancestor",
"element",
"of",
"the",
"node",
"or",
"null",
"if",
"it",
"is",
"not",
"contained",
"within",
"any",
"node",
"in",
"this",
"tree",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1014-L1037 | |
42,602 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(node, autoRefresh) {
// Don't delete the root node
if (node.isRoot()) {
return false;
}
// Get the branch that we may need to refresh
var p = node.parent;
if (p.parent) {
p = p.parent;
}
// Delete the node and its child... | javascript | function(node, autoRefresh) {
// Don't delete the root node
if (node.isRoot()) {
return false;
}
// Get the branch that we may need to refresh
var p = node.parent;
if (p.parent) {
p = p.parent;
}
// Delete the node and its child... | [
"function",
"(",
"node",
",",
"autoRefresh",
")",
"{",
"// Don't delete the root node",
"if",
"(",
"node",
".",
"isRoot",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"// Get the branch that we may need to refresh",
"var",
"p",
"=",
"node",
".",
"parent",
... | Removes the node and its children, and optionally refreshes the
branch of the tree that was affected.
@method removeNode
@param {Node} node to remove
@param {boolean} autoRefresh automatically refreshes branch if true
@return {boolean} False is there was a problem, true otherwise. | [
"Removes",
"the",
"node",
"and",
"its",
"children",
"and",
"optionally",
"refreshes",
"the",
"branch",
"of",
"the",
"tree",
"that",
"was",
"affected",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1058-L1080 | |
42,603 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(node) {
var p = node.parent;
// Update the parent's collection of children
var a = [];
for (var i=0, len=p.children.length;i<len;++i) {
if (p.children[i] != node) {
a[a.length] = p.children[i];
}
}
p.children = a;
... | javascript | function(node) {
var p = node.parent;
// Update the parent's collection of children
var a = [];
for (var i=0, len=p.children.length;i<len;++i) {
if (p.children[i] != node) {
a[a.length] = p.children[i];
}
}
p.children = a;
... | [
"function",
"(",
"node",
")",
"{",
"var",
"p",
"=",
"node",
".",
"parent",
";",
"// Update the parent's collection of children",
"var",
"a",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"p",
".",
"children",
".",
"length",
"... | Removes the node from the tree, preserving the child collection
to make it possible to insert the branch into another part of the
tree, or another tree.
@method popNode
@param {Node} node to remove | [
"Removes",
"the",
"node",
"from",
"the",
"tree",
"preserving",
"the",
"child",
"collection",
"to",
"make",
"it",
"possible",
"to",
"insert",
"the",
"branch",
"into",
"another",
"part",
"of",
"the",
"tree",
"or",
"another",
"tree",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1151-L1191 | |
42,604 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
// Since the label editor can be separated from the main TreeView control
// the destroy method for it might not be there.
if (this._destroyEditor) { this._destroyEditor(); }
var el = this.getEl();
Event.removeListener(el,'click');
Event.removeListener(el,'db... | javascript | function() {
// Since the label editor can be separated from the main TreeView control
// the destroy method for it might not be there.
if (this._destroyEditor) { this._destroyEditor(); }
var el = this.getEl();
Event.removeListener(el,'click');
Event.removeListener(el,'db... | [
"function",
"(",
")",
"{",
"// Since the label editor can be separated from the main TreeView control",
"// the destroy method for it might not be there.",
"if",
"(",
"this",
".",
"_destroyEditor",
")",
"{",
"this",
".",
"_destroyEditor",
"(",
")",
";",
"}",
"var",
"el",
... | Nulls out the entire TreeView instance and related objects, removes attached
event listeners, and clears out DOM elements inside the container. After
calling this method, the instance reference should be expliclitly nulled by
implementer, as in myDataTable = null. Use with caution!
@method destroy | [
"Nulls",
"out",
"the",
"entire",
"TreeView",
"instance",
"and",
"related",
"objects",
"removes",
"attached",
"event",
"listeners",
"and",
"clears",
"out",
"DOM",
"elements",
"inside",
"the",
"container",
".",
"After",
"calling",
"this",
"method",
"the",
"instanc... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1201-L1217 | |
42,605 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(name, value, refresh) {
this.root.setNodesProperty(name,value);
if (refresh) {
this.root.refresh();
}
} | javascript | function(name, value, refresh) {
this.root.setNodesProperty(name,value);
if (refresh) {
this.root.refresh();
}
} | [
"function",
"(",
"name",
",",
"value",
",",
"refresh",
")",
"{",
"this",
".",
"root",
".",
"setNodesProperty",
"(",
"name",
",",
"value",
")",
";",
"if",
"(",
"refresh",
")",
"{",
"this",
".",
"root",
".",
"refresh",
"(",
")",
";",
"}",
"}"
] | Sets the value of a property for all loaded nodes in the tree.
@method setNodesProperty
@param name {string} Name of the property to be set
@param value {any} value to be set
@param refresh {boolean} if present and true, it does a refresh | [
"Sets",
"the",
"value",
"of",
"a",
"property",
"for",
"all",
"loaded",
"nodes",
"in",
"the",
"tree",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1274-L1279 | |
42,606 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function (oArgs) {
var node;
if ('node' in oArgs && oArgs.node instanceof Widget.Node) {
node = oArgs.node;
} else if (oArgs instanceof Widget.Node) {
node = oArgs;
} else {
return false;
}
node.toggleHighlight();
return false;
... | javascript | function (oArgs) {
var node;
if ('node' in oArgs && oArgs.node instanceof Widget.Node) {
node = oArgs.node;
} else if (oArgs instanceof Widget.Node) {
node = oArgs;
} else {
return false;
}
node.toggleHighlight();
return false;
... | [
"function",
"(",
"oArgs",
")",
"{",
"var",
"node",
";",
"if",
"(",
"'node'",
"in",
"oArgs",
"&&",
"oArgs",
".",
"node",
"instanceof",
"Widget",
".",
"Node",
")",
"{",
"node",
"=",
"oArgs",
".",
"node",
";",
"}",
"else",
"if",
"(",
"oArgs",
"instanc... | Event listener to toggle node highlight.
Can be assigned as listener to clickEvent, dblClickEvent and enterKeyPressed.
It returns false to prevent the default action.
@method onEventToggleHighlight
@param oArgs {any} it takes the arguments of any of the events mentioned above
@return {false} Always cancels the default ... | [
"Event",
"listener",
"to",
"toggle",
"node",
"highlight",
".",
"Can",
"be",
"assigned",
"as",
"listener",
"to",
"clickEvent",
"dblClickEvent",
"and",
"enterKeyPressed",
".",
"It",
"returns",
"false",
"to",
"prevent",
"the",
"default",
"action",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1288-L1299 | |
42,607 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(parentNode) {
if (!parentNode) {
return false;
}
this.tree = parentNode.tree;
this.parent = parentNode;
this.depth = parentNode.depth + 1;
// @todo why was this put here. This causes new nodes added at the
// root level to lose the menu ... | javascript | function(parentNode) {
if (!parentNode) {
return false;
}
this.tree = parentNode.tree;
this.parent = parentNode;
this.depth = parentNode.depth + 1;
// @todo why was this put here. This causes new nodes added at the
// root level to lose the menu ... | [
"function",
"(",
"parentNode",
")",
"{",
"if",
"(",
"!",
"parentNode",
")",
"{",
"return",
"false",
";",
"}",
"this",
".",
"tree",
"=",
"parentNode",
".",
"tree",
";",
"this",
".",
"parent",
"=",
"parentNode",
";",
"this",
".",
"depth",
"=",
"parentN... | Certain properties for the node cannot be set until the parent
is known. This is called after the node is inserted into a tree.
the parent is also applied to this node's children in order to
make it possible to move a branch from one tree to another.
@method applyParent
@param {Node} parentNode this node's parent node
... | [
"Certain",
"properties",
"for",
"the",
"node",
"cannot",
"be",
"set",
"until",
"the",
"parent",
"is",
"known",
".",
"This",
"is",
"called",
"after",
"the",
"node",
"is",
"inserted",
"into",
"a",
"tree",
".",
"the",
"parent",
"is",
"also",
"applied",
"to"... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1704-L1730 | |
42,608 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(childNode) {
if (this.hasChildren()) {
var sib = this.children[this.children.length - 1];
sib.nextSibling = childNode;
childNode.previousSibling = sib;
}
this.children[this.children.length] = childNode;
childNode.applyParent(this);
//... | javascript | function(childNode) {
if (this.hasChildren()) {
var sib = this.children[this.children.length - 1];
sib.nextSibling = childNode;
childNode.previousSibling = sib;
}
this.children[this.children.length] = childNode;
childNode.applyParent(this);
//... | [
"function",
"(",
"childNode",
")",
"{",
"if",
"(",
"this",
".",
"hasChildren",
"(",
")",
")",
"{",
"var",
"sib",
"=",
"this",
".",
"children",
"[",
"this",
".",
"children",
".",
"length",
"-",
"1",
"]",
";",
"sib",
".",
"nextSibling",
"=",
"childNo... | Appends a node to the child collection.
@method appendChild
@param childNode {Node} the new node
@return {Node} the child node
@private | [
"Appends",
"a",
"node",
"to",
"the",
"child",
"collection",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1739-L1757 | |
42,609 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(parentNode) {
if (parentNode && parentNode.children) {
for (var i=0, len=parentNode.children.length; i<len ; ++i) {
if (parentNode.children[i] === this) {
return i;
}
}
}
return -1;
} | javascript | function(parentNode) {
if (parentNode && parentNode.children) {
for (var i=0, len=parentNode.children.length; i<len ; ++i) {
if (parentNode.children[i] === this) {
return i;
}
}
}
return -1;
} | [
"function",
"(",
"parentNode",
")",
"{",
"if",
"(",
"parentNode",
"&&",
"parentNode",
".",
"children",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"parentNode",
".",
"children",
".",
"length",
";",
"i",
"<",
"len",
";",
"++",
"i",
... | Returns true if the Node is a child of supplied Node
@method isChildOf
@param parentNode {Node} the Node to check
@return {boolean} The node index if this Node is a child of
supplied Node, else -1.
@private | [
"Returns",
"true",
"if",
"the",
"Node",
"is",
"a",
"child",
"of",
"supplied",
"Node"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1840-L1850 | |
42,610 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var sib = this.parent.children.slice(0);
for (var i=0;i < sib.length && sib[i] != this;i++) {}
sib.splice(i,1);
if (sib.length) { return sib; }
return null;
} | javascript | function() {
var sib = this.parent.children.slice(0);
for (var i=0;i < sib.length && sib[i] != this;i++) {}
sib.splice(i,1);
if (sib.length) { return sib; }
return null;
} | [
"function",
"(",
")",
"{",
"var",
"sib",
"=",
"this",
".",
"parent",
".",
"children",
".",
"slice",
"(",
"0",
")",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"sib",
".",
"length",
"&&",
"sib",
"[",
"i",
"]",
"!=",
"this",
";",
"i... | Returns a node array of this node's siblings, null if none.
@method getSiblings
@return Node[] | [
"Returns",
"a",
"node",
"array",
"of",
"this",
"node",
"s",
"siblings",
"null",
"if",
"none",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1857-L1863 | |
42,611 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var l = this.children.length;
for (var i=0;i<l;++i) {
var c = this.children[i];
if (c.isDynamic()) {
break;
} else if (! c.multiExpand) {
break;
} else {
c.expand();
c.expandAll(... | javascript | function() {
var l = this.children.length;
for (var i=0;i<l;++i) {
var c = this.children[i];
if (c.isDynamic()) {
break;
} else if (! c.multiExpand) {
break;
} else {
c.expand();
c.expandAll(... | [
"function",
"(",
")",
"{",
"var",
"l",
"=",
"this",
".",
"children",
".",
"length",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"l",
";",
"++",
"i",
")",
"{",
"var",
"c",
"=",
"this",
".",
"children",
"[",
"i",
"]",
";",
"if",
"... | Recursively expands all of this node's children.
@method expandAll | [
"Recursively",
"expands",
"all",
"of",
"this",
"node",
"s",
"children",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2148-L2161 | |
42,612 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
for (var i=0;i<this.children.length;++i) {
this.children[i].collapse();
this.children[i].collapseAll();
}
} | javascript | function() {
for (var i=0;i<this.children.length;++i) {
this.children[i].collapse();
this.children[i].collapseAll();
}
} | [
"function",
"(",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"children",
".",
"length",
";",
"++",
"i",
")",
"{",
"this",
".",
"children",
"[",
"i",
"]",
".",
"collapse",
"(",
")",
";",
"this",
".",
"children",
"["... | Recursively collapses all of this node's children.
@method collapseAll | [
"Recursively",
"collapses",
"all",
"of",
"this",
"node",
"s",
"children",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2167-L2172 | |
42,613 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(fnDataLoader, iconMode) {
if (fnDataLoader) {
this.dataLoader = fnDataLoader;
this._dynLoad = true;
} else {
this.dataLoader = null;
this._dynLoad = false;
}
if (iconMode) {
this.iconMode = iconMode;
}
} | javascript | function(fnDataLoader, iconMode) {
if (fnDataLoader) {
this.dataLoader = fnDataLoader;
this._dynLoad = true;
} else {
this.dataLoader = null;
this._dynLoad = false;
}
if (iconMode) {
this.iconMode = iconMode;
}
} | [
"function",
"(",
"fnDataLoader",
",",
"iconMode",
")",
"{",
"if",
"(",
"fnDataLoader",
")",
"{",
"this",
".",
"dataLoader",
"=",
"fnDataLoader",
";",
"this",
".",
"_dynLoad",
"=",
"true",
";",
"}",
"else",
"{",
"this",
".",
"dataLoader",
"=",
"null",
"... | Configures this node for dynamically obtaining the child data
when the node is first expanded. Calling it without the callback
will turn off dynamic load for the node.
@method setDynamicLoad
@param fmDataLoader {function} the function that will be used to get the data.
@param iconMode {int} configures the icon that is... | [
"Configures",
"this",
"node",
"for",
"dynamically",
"obtaining",
"the",
"child",
"data",
"when",
"the",
"node",
"is",
"first",
"expanded",
".",
"Calling",
"it",
"without",
"the",
"callback",
"will",
"turn",
"off",
"dynamic",
"load",
"for",
"the",
"node",
"."... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2185-L2197 | |
42,614 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var sb = [];
sb[sb.length] = '<div class="ygtvchildren" id="' + this.getChildrenElId() + '"';
// This is a workaround for an IE rendering issue, the child div has layout
// in IE, creating extra space if a leaf node is created with the expanded
// property set to ... | javascript | function() {
var sb = [];
sb[sb.length] = '<div class="ygtvchildren" id="' + this.getChildrenElId() + '"';
// This is a workaround for an IE rendering issue, the child div has layout
// in IE, creating extra space if a leaf node is created with the expanded
// property set to ... | [
"function",
"(",
")",
"{",
"var",
"sb",
"=",
"[",
"]",
";",
"sb",
"[",
"sb",
".",
"length",
"]",
"=",
"'<div class=\"ygtvchildren\" id=\"'",
"+",
"this",
".",
"getChildrenElId",
"(",
")",
"+",
"'\"'",
";",
"// This is a workaround for an IE rendering issue, the ... | Called when first rendering the tree. We always build the div that will
contain this nodes children, but we don't render the children themselves
unless this node is expanded.
@method getChildrenHtml
@return {string} the children container div html and any expanded children
@private | [
"Called",
"when",
"first",
"rendering",
"the",
"tree",
".",
"We",
"always",
"build",
"the",
"div",
"that",
"will",
"contain",
"this",
"nodes",
"children",
"but",
"we",
"don",
"t",
"render",
"the",
"children",
"themselves",
"unless",
"this",
"node",
"is",
"... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2288-L2312 | |
42,615 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
// this.loadComplete();
this.getChildrenEl().innerHTML = this.completeRender();
if (this.hasIcon) {
var el = this.getToggleEl();
if (el) {
el.className = el.className.replace(/\bygtv[lt][nmp]h*\b/gi,this.getStyle());
}
}
... | javascript | function() {
// this.loadComplete();
this.getChildrenEl().innerHTML = this.completeRender();
if (this.hasIcon) {
var el = this.getToggleEl();
if (el) {
el.className = el.className.replace(/\bygtv[lt][nmp]h*\b/gi,this.getStyle());
}
}
... | [
"function",
"(",
")",
"{",
"// this.loadComplete();",
"this",
".",
"getChildrenEl",
"(",
")",
".",
"innerHTML",
"=",
"this",
".",
"completeRender",
"(",
")",
";",
"if",
"(",
"this",
".",
"hasIcon",
")",
"{",
"var",
"el",
"=",
"this",
".",
"getToggleEl",
... | Regenerates the html for this node and its children. To be used when the
node is expanded and new children have been added.
@method refresh | [
"Regenerates",
"the",
"html",
"for",
"this",
"node",
"and",
"its",
"children",
".",
"To",
"be",
"used",
"when",
"the",
"node",
"is",
"expanded",
"and",
"new",
"children",
"have",
"been",
"added",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2493-L2503 | |
42,616 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function () {
if (this._focusedItem) {
Event.removeListener(this._focusedItem,'blur');
this._focusedItem = null;
}
var el;
while ((el = this._focusHighlightedItems.shift())) { // yes, it is meant as an assignment, really
Dom.removeClass(el,YAHOO.widge... | javascript | function () {
if (this._focusedItem) {
Event.removeListener(this._focusedItem,'blur');
this._focusedItem = null;
}
var el;
while ((el = this._focusHighlightedItems.shift())) { // yes, it is meant as an assignment, really
Dom.removeClass(el,YAHOO.widge... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"_focusedItem",
")",
"{",
"Event",
".",
"removeListener",
"(",
"this",
".",
"_focusedItem",
",",
"'blur'",
")",
";",
"this",
".",
"_focusedItem",
"=",
"null",
";",
"}",
"var",
"el",
";",
"while",
"("... | Removes the focus of previously selected Node
@method _removeFocus
@private | [
"Removes",
"the",
"focus",
"of",
"previously",
"selected",
"Node"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2544-L2553 | |
42,617 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function () {
var focused = false, self = this;
if (this.tree.currentFocus) {
this.tree.currentFocus._removeFocus();
}
var expandParent = function (node) {
if (node.parent) {
expandParent(node.parent);
node.parent.expand();
... | javascript | function () {
var focused = false, self = this;
if (this.tree.currentFocus) {
this.tree.currentFocus._removeFocus();
}
var expandParent = function (node) {
if (node.parent) {
expandParent(node.parent);
node.parent.expand();
... | [
"function",
"(",
")",
"{",
"var",
"focused",
"=",
"false",
",",
"self",
"=",
"this",
";",
"if",
"(",
"this",
".",
"tree",
".",
"currentFocus",
")",
"{",
"this",
".",
"tree",
".",
"currentFocus",
".",
"_removeFocus",
"(",
")",
";",
"}",
"var",
"expa... | Sets the focus on the node element.
It will only be able to set the focus on nodes that have anchor elements in it.
Toggle or branch icons have anchors and can be focused on.
If will fail in nodes that have no anchor
@method focus
@return {boolean} success | [
"Sets",
"the",
"focus",
"on",
"the",
"node",
"element",
".",
"It",
"will",
"only",
"be",
"able",
"to",
"set",
"the",
"focus",
"on",
"nodes",
"that",
"have",
"anchor",
"elements",
"in",
"it",
".",
"Toggle",
"or",
"branch",
"icons",
"have",
"anchors",
"a... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2562-L2614 | |
42,618 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
for (var i = 0, count = 0;i< this.children.length;i++) {
count += this.children[i].getNodeCount();
}
return count + 1;
} | javascript | function() {
for (var i = 0, count = 0;i< this.children.length;i++) {
count += this.children[i].getNodeCount();
}
return count + 1;
} | [
"function",
"(",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"count",
"=",
"0",
";",
"i",
"<",
"this",
".",
"children",
".",
"length",
";",
"i",
"++",
")",
"{",
"count",
"+=",
"this",
".",
"children",
"[",
"i",
"]",
".",
"getNodeCount",
... | Count of nodes in a branch
@method getNodeCount
@return {int} number of nodes in the branch | [
"Count",
"of",
"nodes",
"in",
"a",
"branch"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2621-L2626 | |
42,619 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
if (this.isDynamic()) { return false; }
var def, defs = Lang.merge(this.data), children = [];
if (this.expanded) {defs.expanded = this.expanded; }
if (!this.multiExpand) { defs.multiExpand = this.multiExpand; }
if (!this.renderHidden... | javascript | function() {
if (this.isDynamic()) { return false; }
var def, defs = Lang.merge(this.data), children = [];
if (this.expanded) {defs.expanded = this.expanded; }
if (!this.multiExpand) { defs.multiExpand = this.multiExpand; }
if (!this.renderHidden... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"isDynamic",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"var",
"def",
",",
"defs",
"=",
"Lang",
".",
"merge",
"(",
"this",
".",
"data",
")",
",",
"children",
"=",
"[",
"]",
";",
"if",
"... | Returns an object which could be used to build a tree out of this node and its children.
It can be passed to the tree constructor to reproduce this node as a tree.
It will return false if the node or any children loads dynamically, regardless of whether it is loaded or not.
@method getNodeDefinition
@return {Object | f... | [
"Returns",
"an",
"object",
"which",
"could",
"be",
"used",
"to",
"build",
"a",
"tree",
"out",
"of",
"this",
"node",
"and",
"its",
"children",
".",
"It",
"can",
"be",
"passed",
"to",
"the",
"tree",
"constructor",
"to",
"reproduce",
"this",
"node",
"as",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2635-L2665 | |
42,620 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(name, value, refresh) {
if (name.charAt(0) != '_' && !Lang.isUndefined(this[name]) && !Lang.isFunction(this[name]) ) {
this[name] = value;
} else {
this.data[name] = value;
}
for (var i = 0; i < this.children.length;i++) {
this.children[i].se... | javascript | function(name, value, refresh) {
if (name.charAt(0) != '_' && !Lang.isUndefined(this[name]) && !Lang.isFunction(this[name]) ) {
this[name] = value;
} else {
this.data[name] = value;
}
for (var i = 0; i < this.children.length;i++) {
this.children[i].se... | [
"function",
"(",
"name",
",",
"value",
",",
"refresh",
")",
"{",
"if",
"(",
"name",
".",
"charAt",
"(",
"0",
")",
"!=",
"'_'",
"&&",
"!",
"Lang",
".",
"isUndefined",
"(",
"this",
"[",
"name",
"]",
")",
"&&",
"!",
"Lang",
".",
"isFunction",
"(",
... | Sets the value of property for this node and all loaded descendants.
Only public and defined properties can be set, not methods.
Values for unknown properties will be assigned to the refNode.data object
@method setNodesProperty
@param name {string} Name of the property to be set
@param value {any} value to be set
@para... | [
"Sets",
"the",
"value",
"of",
"property",
"for",
"this",
"node",
"and",
"all",
"loaded",
"descendants",
".",
"Only",
"public",
"and",
"defined",
"properties",
"can",
"be",
"set",
"not",
"methods",
".",
"Values",
"for",
"unknown",
"properties",
"will",
"be",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2686-L2698 | |
42,621 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(_silent) {
if (this.enableHighlight) {
if (this.tree.singleNodeHighlight) {
if (this.tree._currentlyHighlighted) {
this.tree._currentlyHighlighted.unhighlight(_silent);
}
this.tree._currentlyHighlighted = this;
... | javascript | function(_silent) {
if (this.enableHighlight) {
if (this.tree.singleNodeHighlight) {
if (this.tree._currentlyHighlighted) {
this.tree._currentlyHighlighted.unhighlight(_silent);
}
this.tree._currentlyHighlighted = this;
... | [
"function",
"(",
"_silent",
")",
"{",
"if",
"(",
"this",
".",
"enableHighlight",
")",
"{",
"if",
"(",
"this",
".",
"tree",
".",
"singleNodeHighlight",
")",
"{",
"if",
"(",
"this",
".",
"tree",
".",
"_currentlyHighlighted",
")",
"{",
"this",
".",
"tree"... | Turns highlighting on node.
@method highlight
@param _silent {boolean} optional, don't fire the highlightEvent | [
"Turns",
"highlighting",
"on",
"node",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2719-L2745 | |
42,622 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var yes = false, no = false;
if (this.enableHighlight) {
for (var i = 0;i < this.children.length;i++) {
switch(this.children[i].highlightState) {
case 0:
no = true;
break;
cas... | javascript | function() {
var yes = false, no = false;
if (this.enableHighlight) {
for (var i = 0;i < this.children.length;i++) {
switch(this.children[i].highlightState) {
case 0:
no = true;
break;
cas... | [
"function",
"(",
")",
"{",
"var",
"yes",
"=",
"false",
",",
"no",
"=",
"false",
";",
"if",
"(",
"this",
".",
"enableHighlight",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"children",
".",
"length",
";",
"i",
"++",
... | Checks whether all or part of the children of a node are highlighted and
sets the node highlight to full, none or partial highlight.
If set to propagate it will further call the parent
@method _childrenHighlighted
@private | [
"Checks",
"whether",
"all",
"or",
"part",
"of",
"the",
"children",
"of",
"a",
"node",
"are",
"highlighted",
"and",
"sets",
"the",
"node",
"highlight",
"to",
"full",
"none",
"or",
"partial",
"highlight",
".",
"If",
"set",
"to",
"propagate",
"it",
"will",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2781-L2811 | |
42,623 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var el = Dom.get('ygtvtableel' + this.index);
if (el) {
el.className = el.className.replace(/\bygtv-highlight\d\b/gi,'ygtv-highlight' + this.highlightState);
}
} | javascript | function() {
var el = Dom.get('ygtvtableel' + this.index);
if (el) {
el.className = el.className.replace(/\bygtv-highlight\d\b/gi,'ygtv-highlight' + this.highlightState);
}
} | [
"function",
"(",
")",
"{",
"var",
"el",
"=",
"Dom",
".",
"get",
"(",
"'ygtvtableel'",
"+",
"this",
".",
"index",
")",
";",
"if",
"(",
"el",
")",
"{",
"el",
".",
"className",
"=",
"el",
".",
"className",
".",
"replace",
"(",
"/",
"\\bygtv-highlight\... | Changes the classNames on the toggle and content containers to reflect the current highlighting
@method _setHighlightClassName
@private | [
"Changes",
"the",
"classNames",
"on",
"the",
"toggle",
"and",
"content",
"containers",
"to",
"reflect",
"the",
"current",
"highlighting"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2818-L2823 | |
42,624 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
for (var def, defs = [], i = 0; i < this.children.length;i++) {
def = this.children[i].getNodeDefinition();
if (def === false) { return false;}
defs.push(def);
}
return defs;
} | javascript | function() {
for (var def, defs = [], i = 0; i < this.children.length;i++) {
def = this.children[i].getNodeDefinition();
if (def === false) { return false;}
defs.push(def);
}
return defs;
} | [
"function",
"(",
")",
"{",
"for",
"(",
"var",
"def",
",",
"defs",
"=",
"[",
"]",
",",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"children",
".",
"length",
";",
"i",
"++",
")",
"{",
"def",
"=",
"this",
".",
"children",
"[",
"i",
"]",
".",
... | Returns an object which could be used to build a tree out of this node and its children.
It can be passed to the tree constructor to reproduce this node as a tree.
Since the RootNode is automatically created by treeView,
its own definition is excluded from the returned node definition
which only contains its children.
... | [
"Returns",
"an",
"object",
"which",
"could",
"be",
"used",
"to",
"build",
"a",
"tree",
"out",
"of",
"this",
"node",
"and",
"its",
"children",
".",
"It",
"can",
"be",
"passed",
"to",
"the",
"tree",
"constructor",
"to",
"reproduce",
"this",
"node",
"as",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2898-L2906 | |
42,625 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var sb = [];
sb[sb.length] = this.href?'<a':'<span';
sb[sb.length] = ' id="' + this.labelElId + '"';
sb[sb.length] = ' class="' + this.labelStyle + '"';
if (this.href) {
sb[sb.length] = ' href="' + this.href + '"';
sb[sb.length] = ' target="... | javascript | function() {
var sb = [];
sb[sb.length] = this.href?'<a':'<span';
sb[sb.length] = ' id="' + this.labelElId + '"';
sb[sb.length] = ' class="' + this.labelStyle + '"';
if (this.href) {
sb[sb.length] = ' href="' + this.href + '"';
sb[sb.length] = ' target="... | [
"function",
"(",
")",
"{",
"var",
"sb",
"=",
"[",
"]",
";",
"sb",
"[",
"sb",
".",
"length",
"]",
"=",
"this",
".",
"href",
"?",
"'<a'",
":",
"'<span'",
";",
"sb",
"[",
"sb",
".",
"length",
"]",
"=",
"' id=\"'",
"+",
"this",
".",
"labelElId",
... | overrides YAHOO.widget.Node | [
"overrides",
"YAHOO",
".",
"widget",
".",
"Node"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3045-L3061 | |
42,626 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(o) {
this.html = (typeof o === "string") ? o : o.html;
var el = this.getContentEl();
if (el) {
el.innerHTML = this.html;
}
} | javascript | function(o) {
this.html = (typeof o === "string") ? o : o.html;
var el = this.getContentEl();
if (el) {
el.innerHTML = this.html;
}
} | [
"function",
"(",
"o",
")",
"{",
"this",
".",
"html",
"=",
"(",
"typeof",
"o",
"===",
"\"string\"",
")",
"?",
"o",
":",
"o",
".",
"html",
";",
"var",
"el",
"=",
"this",
".",
"getContentEl",
"(",
")",
";",
"if",
"(",
"el",
")",
"{",
"el",
".",
... | Synchronizes the node.html, and the node's content
@property setHtml
@param o {object} An html string or object containing an html property | [
"Synchronizes",
"the",
"node",
".",
"html",
"and",
"the",
"node",
"s",
"content"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3236-L3245 | |
42,627 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var def = YAHOO.widget.HTMLNode.superclass.getNodeDefinition.call(this);
if (def === false) { return false; }
def.html = this.html;
return def;
} | javascript | function() {
var def = YAHOO.widget.HTMLNode.superclass.getNodeDefinition.call(this);
if (def === false) { return false; }
def.html = this.html;
return def;
} | [
"function",
"(",
")",
"{",
"var",
"def",
"=",
"YAHOO",
".",
"widget",
".",
"HTMLNode",
".",
"superclass",
".",
"getNodeDefinition",
".",
"call",
"(",
"this",
")",
";",
"if",
"(",
"def",
"===",
"false",
")",
"{",
"return",
"false",
";",
"}",
"def",
... | Returns an object which could be used to build a tree out of this node and its children.
It can be passed to the tree constructor to reproduce this node as a tree.
It will return false if any node loads dynamically, regardless of whether it is loaded or not.
@method getNodeDefinition
@return {Object | false} definitio... | [
"Returns",
"an",
"object",
"which",
"could",
"be",
"used",
"to",
"build",
"a",
"tree",
"out",
"of",
"this",
"node",
"and",
"its",
"children",
".",
"It",
"can",
"be",
"passed",
"to",
"the",
"tree",
"constructor",
"to",
"reproduce",
"this",
"node",
"as",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3259-L3265 | |
42,628 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function (editorData) {
var cal, container = editorData.inputContainer;
if (Lang.isUndefined(Calendar)) {
Dom.replaceClass(editorData.editorPanel,'ygtv-edit-DateNode','ygtv-edit-TextNode');
YAHOO.widget.DateNode.superclass.fillEditorContainer.call(this, editorData);... | javascript | function (editorData) {
var cal, container = editorData.inputContainer;
if (Lang.isUndefined(Calendar)) {
Dom.replaceClass(editorData.editorPanel,'ygtv-edit-DateNode','ygtv-edit-TextNode');
YAHOO.widget.DateNode.superclass.fillEditorContainer.call(this, editorData);... | [
"function",
"(",
"editorData",
")",
"{",
"var",
"cal",
",",
"container",
"=",
"editorData",
".",
"inputContainer",
";",
"if",
"(",
"Lang",
".",
"isUndefined",
"(",
"Calendar",
")",
")",
"{",
"Dom",
".",
"replaceClass",
"(",
"editorData",
".",
"editorPanel"... | If YAHOO.widget.Calendar is available, it will pop up a Calendar to enter a new date. Otherwise, it falls back to a plain <input> textbox
@method fillEditorContainer
@param editorData {YAHOO.widget.TreeView.editorData} a shortcut to the static object holding editing information
@return void | [
"If",
"YAHOO",
".",
"widget",
".",
"Calendar",
"is",
"available",
"it",
"will",
"pop",
"up",
"a",
"Calendar",
"to",
"enter",
"a",
"new",
"date",
".",
"Otherwise",
"it",
"falls",
"back",
"to",
"a",
"plain",
"<",
";",
"input>",
";",
"textbox"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3324-L3362 | |
42,629 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function (value,editorData) {
var node = editorData.node;
node.label = value;
node.getLabelEl().innerHTML = value;
} | javascript | function (value,editorData) {
var node = editorData.node;
node.label = value;
node.getLabelEl().innerHTML = value;
} | [
"function",
"(",
"value",
",",
"editorData",
")",
"{",
"var",
"node",
"=",
"editorData",
".",
"node",
";",
"node",
".",
"label",
"=",
"value",
";",
"node",
".",
"getLabelEl",
"(",
")",
".",
"innerHTML",
"=",
"value",
";",
"}"
] | Finally displays the newly entered date in the tree.
Overrides Node.displayEditedValue.
@method displayEditedValue
@param value {string} date to be displayed and stored in the node
@param editorData {YAHOO.widget.TreeView.editorData} a shortcut to the static object holding editing information | [
"Finally",
"displays",
"the",
"newly",
"entered",
"date",
"in",
"the",
"tree",
".",
"Overrides",
"Node",
".",
"displayEditedValue",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3393-L3397 | |
42,630 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(type, el, callback) {
if (YAHOO.widget[type]) {
return new YAHOO.widget[type](el, callback);
} else {
return null;
}
} | javascript | function(type, el, callback) {
if (YAHOO.widget[type]) {
return new YAHOO.widget[type](el, callback);
} else {
return null;
}
} | [
"function",
"(",
"type",
",",
"el",
",",
"callback",
")",
"{",
"if",
"(",
"YAHOO",
".",
"widget",
"[",
"type",
"]",
")",
"{",
"return",
"new",
"YAHOO",
".",
"widget",
"[",
"type",
"]",
"(",
"el",
",",
"callback",
")",
";",
"}",
"else",
"{",
"re... | Returns a ygAnim instance of the given type
@method getAnim
@param type {string} the type of animation
@param el {HTMLElement} the element to element (probably the children div)
@param callback {function} function to invoke when the animation is done.
@return {YAHOO.util.Animation} the animation instance
@static | [
"Returns",
"a",
"ygAnim",
"instance",
"of",
"the",
"given",
"type"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3848-L3854 | |
42,631 | neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var s = this.el.style;
s.display = "none";
s.opacity = 1;
s.filter = "alpha(opacity=100)";
this.callback();
} | javascript | function() {
var s = this.el.style;
s.display = "none";
s.opacity = 1;
s.filter = "alpha(opacity=100)";
this.callback();
} | [
"function",
"(",
")",
"{",
"var",
"s",
"=",
"this",
".",
"el",
".",
"style",
";",
"s",
".",
"display",
"=",
"\"none\"",
";",
"s",
".",
"opacity",
"=",
"1",
";",
"s",
".",
"filter",
"=",
"\"alpha(opacity=100)\"",
";",
"this",
".",
"callback",
"(",
... | Clean up and invoke callback
@method onComplete | [
"Clean",
"up",
"and",
"invoke",
"callback"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3971-L3977 | |
42,632 | neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function(tab, index) {
var tabs = this.get('tabs'),
before = this.getTab(index),
tabParent = this._tabParent,
contentParent = this._contentParent,
tabElement = tab.get(ELEMENT),
contentEl = tab.get(CONTENT_EL);
if (... | javascript | function(tab, index) {
var tabs = this.get('tabs'),
before = this.getTab(index),
tabParent = this._tabParent,
contentParent = this._contentParent,
tabElement = tab.get(ELEMENT),
contentEl = tab.get(CONTENT_EL);
if (... | [
"function",
"(",
"tab",
",",
"index",
")",
"{",
"var",
"tabs",
"=",
"this",
".",
"get",
"(",
"'tabs'",
")",
",",
"before",
"=",
"this",
".",
"getTab",
"(",
"index",
")",
",",
"tabParent",
"=",
"this",
".",
"_tabParent",
",",
"contentParent",
"=",
"... | Adds a Tab to the TabView instance.
If no index is specified, the tab is added to the end of the tab list.
@method addTab
@param {YAHOO.widget.Tab} tab A Tab instance to add.
@param {Integer} index The position to add the tab.
@return void | [
"Adds",
"a",
"Tab",
"to",
"the",
"TabView",
"instance",
".",
"If",
"no",
"index",
"is",
"specified",
"the",
"tab",
"is",
"added",
"to",
"the",
"end",
"of",
"the",
"tab",
"list",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L94-L129 | |
42,633 | neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function(e) {
var target = Event.getTarget(e),
tabParent = this._tabParent,
tabs = this.get('tabs'),
tab,
tabEl,
contentEl;
if (Dom.isAncestor(tabParent, target) ) {
for (var i = 0, len ... | javascript | function(e) {
var target = Event.getTarget(e),
tabParent = this._tabParent,
tabs = this.get('tabs'),
tab,
tabEl,
contentEl;
if (Dom.isAncestor(tabParent, target) ) {
for (var i = 0, len ... | [
"function",
"(",
"e",
")",
"{",
"var",
"target",
"=",
"Event",
".",
"getTarget",
"(",
"e",
")",
",",
"tabParent",
"=",
"this",
".",
"_tabParent",
",",
"tabs",
"=",
"this",
".",
"get",
"(",
"'tabs'",
")",
",",
"tab",
",",
"tabEl",
",",
"contentEl",
... | Routes childNode events.
@method DOMEventHandler
@param {event} e The Dom event that is being handled.
@return void | [
"Routes",
"childNode",
"events",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L147-L171 | |
42,634 | neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function(tab) {
var index = null,
tabs = this.get('tabs');
for (var i = 0, len = tabs.length; i < len; ++i) {
if (tab == tabs[i]) {
index = i;
break;
}
}
return index;
... | javascript | function(tab) {
var index = null,
tabs = this.get('tabs');
for (var i = 0, len = tabs.length; i < len; ++i) {
if (tab == tabs[i]) {
index = i;
break;
}
}
return index;
... | [
"function",
"(",
"tab",
")",
"{",
"var",
"index",
"=",
"null",
",",
"tabs",
"=",
"this",
".",
"get",
"(",
"'tabs'",
")",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"tabs",
".",
"length",
";",
"i",
"<",
"len",
";",
"++",
"i",
")... | Returns the index of given tab.
@method getTabIndex
@param {YAHOO.widget.Tab} tab The tab whose index will be returned.
@return int | [
"Returns",
"the",
"index",
"of",
"given",
"tab",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L189-L200 | |
42,635 | neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function(tab) {
var tabCount = this.get('tabs').length,
index = this.getTabIndex(tab);
if ( tab === this.get(ACTIVE_TAB) ) {
if (tabCount > 1) { // select another tab
if (index + 1 === tabCount) { // if last, activate previous
... | javascript | function(tab) {
var tabCount = this.get('tabs').length,
index = this.getTabIndex(tab);
if ( tab === this.get(ACTIVE_TAB) ) {
if (tabCount > 1) { // select another tab
if (index + 1 === tabCount) { // if last, activate previous
... | [
"function",
"(",
"tab",
")",
"{",
"var",
"tabCount",
"=",
"this",
".",
"get",
"(",
"'tabs'",
")",
".",
"length",
",",
"index",
"=",
"this",
".",
"getTabIndex",
"(",
"tab",
")",
";",
"if",
"(",
"tab",
"===",
"this",
".",
"get",
"(",
"ACTIVE_TAB",
... | Removes the specified Tab from the TabView.
@method removeTab
@param {YAHOO.widget.Tab} item The Tab instance to be removed.
@return void | [
"Removes",
"the",
"specified",
"Tab",
"from",
"the",
"TabView",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L208-L230 | |
42,636 | neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function(newTab, oldTab) {
if (newTab) {
newTab.set('contentVisible', true);
}
if (oldTab) {
oldTab.set('contentVisible', false);
}
} | javascript | function(newTab, oldTab) {
if (newTab) {
newTab.set('contentVisible', true);
}
if (oldTab) {
oldTab.set('contentVisible', false);
}
} | [
"function",
"(",
"newTab",
",",
"oldTab",
")",
"{",
"if",
"(",
"newTab",
")",
"{",
"newTab",
".",
"set",
"(",
"'contentVisible'",
",",
"true",
")",
";",
"}",
"if",
"(",
"oldTab",
")",
"{",
"oldTab",
".",
"set",
"(",
"'contentVisible'",
",",
"false",
... | The transiton to use when switching between tabs.
@method contentTransition | [
"The",
"transiton",
"to",
"use",
"when",
"switching",
"between",
"tabs",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L246-L253 | |
42,637 | neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function() {
var tabs = Dom.getChildren(this._tabParent),
contentElements = Dom.getChildren(this._contentParent),
activeIndex = this.get(ACTIVE_INDEX),
tab,
attr,
active;
for (var i = 0, len = tabs.length; i < len; ... | javascript | function() {
var tabs = Dom.getChildren(this._tabParent),
contentElements = Dom.getChildren(this._contentParent),
activeIndex = this.get(ACTIVE_INDEX),
tab,
attr,
active;
for (var i = 0, len = tabs.length; i < len; ... | [
"function",
"(",
")",
"{",
"var",
"tabs",
"=",
"Dom",
".",
"getChildren",
"(",
"this",
".",
"_tabParent",
")",
",",
"contentElements",
"=",
"Dom",
".",
"getChildren",
"(",
"this",
".",
"_contentParent",
")",
",",
"activeIndex",
"=",
"this",
".",
"get",
... | Creates Tab instances from a collection of HTMLElements.
@method _initTabs
@private
@return void | [
"Creates",
"Tab",
"instances",
"from",
"a",
"collection",
"of",
"HTMLElements",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L443-L471 | |
42,638 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(aData, index) {
var Rec = widget.Record,
a = lang.isArray(aData) ? aData : [aData],
added = [],
i = 0, l = a.length, j = 0;
index = parseInt(index,10)|0;
for(; i < l; ++i) {
if (typeof a[i] === 'object' && a[i]) {
a... | javascript | function(aData, index) {
var Rec = widget.Record,
a = lang.isArray(aData) ? aData : [aData],
added = [],
i = 0, l = a.length, j = 0;
index = parseInt(index,10)|0;
for(; i < l; ++i) {
if (typeof a[i] === 'object' && a[i]) {
a... | [
"function",
"(",
"aData",
",",
"index",
")",
"{",
"var",
"Rec",
"=",
"widget",
".",
"Record",
",",
"a",
"=",
"lang",
".",
"isArray",
"(",
"aData",
")",
"?",
"aData",
":",
"[",
"aData",
"]",
",",
"added",
"=",
"[",
"]",
",",
"i",
"=",
"0",
","... | Sets or replaces multiple Records at once to the RecordSet with the given
data, starting at the given index. If index is not specified, then the new
Records are added to the end of the RecordSet.
@method setRecords
@param aData {Object[]} An array of object literal data.
@param index {Number} (optional) Position index... | [
"Sets",
"or",
"replaces",
"multiple",
"Records",
"at",
"once",
"to",
"the",
"RecordSet",
"with",
"the",
"given",
"data",
"starting",
"at",
"the",
"given",
"index",
".",
"If",
"index",
"is",
"not",
"specified",
"then",
"the",
"new",
"Records",
"are",
"added... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L2072-L2098 | |
42,639 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(oData) {
//Convert to number
var number = oData * 1;
// Validate
if(lang.isNumber(number)) {
return number;
}
else {
YAHOO.log("Could not validate data " + lang.dump(oData) + " to type Number", "warn", this.toString());
return... | javascript | function(oData) {
//Convert to number
var number = oData * 1;
// Validate
if(lang.isNumber(number)) {
return number;
}
else {
YAHOO.log("Could not validate data " + lang.dump(oData) + " to type Number", "warn", this.toString());
return... | [
"function",
"(",
"oData",
")",
"{",
"//Convert to number",
"var",
"number",
"=",
"oData",
"*",
"1",
";",
"// Validate",
"if",
"(",
"lang",
".",
"isNumber",
"(",
"number",
")",
")",
"{",
"return",
"number",
";",
"}",
"else",
"{",
"YAHOO",
".",
"log",
... | Validates data value to type Number, doing type conversion as
necessary. A valid Number value is return, else null is returned
if input value does not validate.
@method DataTable.validateNumber
@param oData {Object} Data to validate.
@static | [
"Validates",
"data",
"value",
"to",
"type",
"Number",
"doing",
"type",
"conversion",
"as",
"necessary",
".",
"A",
"valid",
"Number",
"value",
"is",
"return",
"else",
"null",
"is",
"returned",
"if",
"input",
"value",
"does",
"not",
"validate",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L3562-L3574 | |
42,640 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(oDataSource) {
this._oDataSource = null;
if(oDataSource && (lang.isFunction(oDataSource.sendRequest))) {
this._oDataSource = oDataSource;
}
// Backward compatibility
else {
var tmpTable = null;
var tmpContainer = this._elContainer;
var i=0;
//TODO: th... | javascript | function(oDataSource) {
this._oDataSource = null;
if(oDataSource && (lang.isFunction(oDataSource.sendRequest))) {
this._oDataSource = oDataSource;
}
// Backward compatibility
else {
var tmpTable = null;
var tmpContainer = this._elContainer;
var i=0;
//TODO: th... | [
"function",
"(",
"oDataSource",
")",
"{",
"this",
".",
"_oDataSource",
"=",
"null",
";",
"if",
"(",
"oDataSource",
"&&",
"(",
"lang",
".",
"isFunction",
"(",
"oDataSource",
".",
"sendRequest",
")",
")",
")",
"{",
"this",
".",
"_oDataSource",
"=",
"oDataS... | Initializes DataSource.
@method _initDataSource
@param oDataSource {YAHOO.util.DataSource} DataSource instance.
@private | [
"Initializes",
"DataSource",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L4512-L4546 | |
42,641 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function() {
this._destroyDraggableColumns();
if(util.DD) {
var oColumn, elTh, elDragTarget;
for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
oColumn = this._oColumnSet.tree[0][i];
elTh = oColumn.getThEl();
Dom.addClass(elTh, DT.CLASS_DRAGGABLE)... | javascript | function() {
this._destroyDraggableColumns();
if(util.DD) {
var oColumn, elTh, elDragTarget;
for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
oColumn = this._oColumnSet.tree[0][i];
elTh = oColumn.getThEl();
Dom.addClass(elTh, DT.CLASS_DRAGGABLE)... | [
"function",
"(",
")",
"{",
"this",
".",
"_destroyDraggableColumns",
"(",
")",
";",
"if",
"(",
"util",
".",
"DD",
")",
"{",
"var",
"oColumn",
",",
"elTh",
",",
"elDragTarget",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"this",
".",
"_... | Initializes top-level Column TH elements into DD instances.
@method _initDraggableColumns
@private | [
"Initializes",
"top",
"-",
"level",
"Column",
"TH",
"elements",
"into",
"DD",
"instances",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L5025-L5040 | |
42,642 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(cell) {
var elCell = this.getTdEl(cell);
if(elCell) {
var nThisTdIndex = elCell.cellIndex;
var elRow = this.getTrEl(elCell);
if(nThisTdIndex > 0) {
return elRow.cells[nThisTdIndex-1];
}
else {
var elPreviousRow = this.getPreviousTrEl(elRow... | javascript | function(cell) {
var elCell = this.getTdEl(cell);
if(elCell) {
var nThisTdIndex = elCell.cellIndex;
var elRow = this.getTrEl(elCell);
if(nThisTdIndex > 0) {
return elRow.cells[nThisTdIndex-1];
}
else {
var elPreviousRow = this.getPreviousTrEl(elRow... | [
"function",
"(",
"cell",
")",
"{",
"var",
"elCell",
"=",
"this",
".",
"getTdEl",
"(",
"cell",
")",
";",
"if",
"(",
"elCell",
")",
"{",
"var",
"nThisTdIndex",
"=",
"elCell",
".",
"cellIndex",
";",
"var",
"elRow",
"=",
"this",
".",
"getTrEl",
"(",
"e... | Returns DOM reference to the previous TD element from the given cell, or null.
@method getPreviousTdEl
@param cell {HTMLElement | String | Object} DOM element reference or string ID, or
object literal of syntax {record:oRecord, column:oColumn} from which to get previous TD element.
@return {HTMLElement} Reference to p... | [
"Returns",
"DOM",
"reference",
"to",
"the",
"previous",
"TD",
"element",
"from",
"the",
"given",
"cell",
"or",
"null",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L7001-L7018 | |
42,643 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function() {
// Store for later
var instanceName = this.toString();
this._oChainRender.stop();
// Destroy static resizer proxy and column proxy
DT._destroyColumnDragTargetEl();
DT._destroyColumnResizerProxyEl();
// Destroy ColumnDD and ColumnResizers
this._destroyColumnHelpers... | javascript | function() {
// Store for later
var instanceName = this.toString();
this._oChainRender.stop();
// Destroy static resizer proxy and column proxy
DT._destroyColumnDragTargetEl();
DT._destroyColumnResizerProxyEl();
// Destroy ColumnDD and ColumnResizers
this._destroyColumnHelpers... | [
"function",
"(",
")",
"{",
"// Store for later",
"var",
"instanceName",
"=",
"this",
".",
"toString",
"(",
")",
";",
"this",
".",
"_oChainRender",
".",
"stop",
"(",
")",
";",
"// Destroy static resizer proxy and column proxy",
"DT",
".",
"_destroyColumnDragTargetEl"... | Nulls out the entire DataTable instance and related objects, removes attached
event listeners, and clears out DOM elements inside the container. After
calling this method, the instance reference should be expliclitly nulled by
implementer, as in myDataTable = null. Use with caution!
@method destroy | [
"Nulls",
"out",
"the",
"entire",
"DataTable",
"instance",
"and",
"related",
"objects",
"removes",
"attached",
"event",
"listeners",
"and",
"clears",
"out",
"DOM",
"elements",
"inside",
"the",
"container",
".",
"After",
"calling",
"this",
"method",
"the",
"instan... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L7430-L7484 | |
42,644 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(row, oData) {
var index = row;
if (!lang.isNumber(index)) {
index = this.getRecordIndex(row);
}
// Update the Record
if(lang.isNumber(index) && (index >= 0)) {
var oRecordSet = this._oRecordSet,
oldRecord = oRecordSet.getRecord(index);
... | javascript | function(row, oData) {
var index = row;
if (!lang.isNumber(index)) {
index = this.getRecordIndex(row);
}
// Update the Record
if(lang.isNumber(index) && (index >= 0)) {
var oRecordSet = this._oRecordSet,
oldRecord = oRecordSet.getRecord(index);
... | [
"function",
"(",
"row",
",",
"oData",
")",
"{",
"var",
"index",
"=",
"row",
";",
"if",
"(",
"!",
"lang",
".",
"isNumber",
"(",
"index",
")",
")",
"{",
"index",
"=",
"this",
".",
"getRecordIndex",
"(",
"row",
")",
";",
"}",
"// Update the Record",
"... | For the given row, updates the associated Record with the given data. If the
row is on current page, the corresponding DOM elements are also updated.
@method updateRow
@param row {YAHOO.widget.Record | Number | HTMLElement | String}
Which row to update: By Record instance, by Record's RecordSet
position index, by HTML... | [
"For",
"the",
"given",
"row",
"updates",
"the",
"associated",
"Record",
"with",
"the",
"given",
"data",
".",
"If",
"the",
"row",
"is",
"on",
"current",
"page",
"the",
"corresponding",
"DOM",
"elements",
"are",
"also",
"updated",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L9156-L9228 | |
42,645 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(elLiner, oRecord, oColumn) {
if(!oRecord) {
oRecord = this.getRecord(elLiner);
}
if(!oColumn) {
oColumn = this.getColumn(elLiner.parentNode.cellIndex);
}
if(oRecord && oColumn) {
var sField = oColumn.field;
var oData = oRecord.getData(sField);
var f... | javascript | function(elLiner, oRecord, oColumn) {
if(!oRecord) {
oRecord = this.getRecord(elLiner);
}
if(!oColumn) {
oColumn = this.getColumn(elLiner.parentNode.cellIndex);
}
if(oRecord && oColumn) {
var sField = oColumn.field;
var oData = oRecord.getData(sField);
var f... | [
"function",
"(",
"elLiner",
",",
"oRecord",
",",
"oColumn",
")",
"{",
"if",
"(",
"!",
"oRecord",
")",
"{",
"oRecord",
"=",
"this",
".",
"getRecord",
"(",
"elLiner",
")",
";",
"}",
"if",
"(",
"!",
"oColumn",
")",
"{",
"oColumn",
"=",
"this",
".",
... | CELL FUNCTIONS
Outputs markup into the given TD based on given Record.
@method formatCell
@param elLiner {HTMLElement} The liner DIV element within the TD.
@param oRecord {YAHOO.widget.Record} (Optional) Record instance.
@param oColumn {YAHOO.widget.Column} (Optional) Column instance. | [
"CELL",
"FUNCTIONS",
"Outputs",
"markup",
"into",
"the",
"given",
"TD",
"based",
"on",
"given",
"Record",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L9643-L9673 | |
42,646 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(oRecord, oColumn, oData) {
// Validate Column and Record
oColumn = (oColumn instanceof YAHOO.widget.Column) ? oColumn : this.getColumn(oColumn);
if(oColumn && oColumn.getField() && (oRecord instanceof YAHOO.widget.Record)) {
var sKey = oColumn.getField(),
// Copy data f... | javascript | function(oRecord, oColumn, oData) {
// Validate Column and Record
oColumn = (oColumn instanceof YAHOO.widget.Column) ? oColumn : this.getColumn(oColumn);
if(oColumn && oColumn.getField() && (oRecord instanceof YAHOO.widget.Record)) {
var sKey = oColumn.getField(),
// Copy data f... | [
"function",
"(",
"oRecord",
",",
"oColumn",
",",
"oData",
")",
"{",
"// Validate Column and Record",
"oColumn",
"=",
"(",
"oColumn",
"instanceof",
"YAHOO",
".",
"widget",
".",
"Column",
")",
"?",
"oColumn",
":",
"this",
".",
"getColumn",
"(",
"oColumn",
")",... | For the given row and column, updates the Record with the given data. If the
cell is on current page, the corresponding DOM elements are also updated.
@method updateCell
@param oRecord {YAHOO.widget.Record} Record instance.
@param oColumn {YAHOO.widget.Column | String | Number} A Column key, or a ColumnSet key index.
... | [
"For",
"the",
"given",
"row",
"and",
"column",
"updates",
"the",
"Record",
"with",
"the",
"given",
"data",
".",
"If",
"the",
"cell",
"is",
"on",
"current",
"page",
"the",
"corresponding",
"DOM",
"elements",
"are",
"also",
"updated",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L9684-L9724 | |
42,647 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(row) {
var elRow = this.getTrEl(row);
if(elRow) {
// Make sure previous row is unhighlighted
/* if(this._sLastHighlightedTrElId) {
Dom.removeClass(this._sLastHighlightedTrElId,DT.CLASS_HIGHLIGHTED);
}*/
var oRecord = this.getRecord(elRow);
Dom.addClas... | javascript | function(row) {
var elRow = this.getTrEl(row);
if(elRow) {
// Make sure previous row is unhighlighted
/* if(this._sLastHighlightedTrElId) {
Dom.removeClass(this._sLastHighlightedTrElId,DT.CLASS_HIGHLIGHTED);
}*/
var oRecord = this.getRecord(elRow);
Dom.addClas... | [
"function",
"(",
"row",
")",
"{",
"var",
"elRow",
"=",
"this",
".",
"getTrEl",
"(",
"row",
")",
";",
"if",
"(",
"elRow",
")",
"{",
"// Make sure previous row is unhighlighted",
"/* if(this._sLastHighlightedTrElId) {\n Dom.removeClass(this._sLastHighlighted... | Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given row.
@method highlightRow
@param row {HTMLElement | String} DOM element reference or ID string. | [
"Assigns",
"the",
"class",
"YAHOO",
".",
"widget",
".",
"DataTable",
".",
"CLASS_HIGHLIGHTED",
"to",
"the",
"given",
"row",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L11995-L12011 | |
42,648 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(oDataTable, elCell) {
// Validate
if(oDataTable instanceof YAHOO.widget.DataTable) {
this._oDataTable = oDataTable;
// Validate cell
elCell = oDataTable.getTdEl(elCell);
if(elCell) {
this._elTd = elCell;
// Validate Column
v... | javascript | function(oDataTable, elCell) {
// Validate
if(oDataTable instanceof YAHOO.widget.DataTable) {
this._oDataTable = oDataTable;
// Validate cell
elCell = oDataTable.getTdEl(elCell);
if(elCell) {
this._elTd = elCell;
// Validate Column
v... | [
"function",
"(",
"oDataTable",
",",
"elCell",
")",
"{",
"// Validate ",
"if",
"(",
"oDataTable",
"instanceof",
"YAHOO",
".",
"widget",
".",
"DataTable",
")",
"{",
"this",
".",
"_oDataTable",
"=",
"oDataTable",
";",
"// Validate cell",
"elCell",
"=",
"oDataTabl... | Attach CellEditor for a new interaction.
@method attach
@param oDataTable {YAHOO.widget.DataTable} Associated DataTable instance.
@param elCell {HTMLElement} Cell to edit. | [
"Attach",
"CellEditor",
"for",
"a",
"new",
"interaction",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L16063-L16091 | |
42,649 | neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function() {
this.resetForm();
this.isActive = true;
this.getContainerEl().style.display = "";
this.focus();
this.fireEvent("showEvent", {editor:this});
YAHOO.log("CellEditor shown", "info", this.toString());
} | javascript | function() {
this.resetForm();
this.isActive = true;
this.getContainerEl().style.display = "";
this.focus();
this.fireEvent("showEvent", {editor:this});
YAHOO.log("CellEditor shown", "info", this.toString());
} | [
"function",
"(",
")",
"{",
"this",
".",
"resetForm",
"(",
")",
";",
"this",
".",
"isActive",
"=",
"true",
";",
"this",
".",
"getContainerEl",
"(",
")",
".",
"style",
".",
"display",
"=",
"\"\"",
";",
"this",
".",
"focus",
"(",
")",
";",
"this",
"... | Displays CellEditor UI in the correct position.
@method show | [
"Displays",
"CellEditor",
"UI",
"in",
"the",
"correct",
"position",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L16128-L16135 | |
42,650 | neyric/webhookit | public/javascripts/inputex/js/fields/DSSelectField.js | function (options) {
inputEx.DSSelectField.superclass.setOptions.call(this, options);
this.options.valueKey = options.valueKey || "value";
this.options.labelKey = options.labelKey || "label";
this.options.datasource = options.datasource;
} | javascript | function (options) {
inputEx.DSSelectField.superclass.setOptions.call(this, options);
this.options.valueKey = options.valueKey || "value";
this.options.labelKey = options.labelKey || "label";
this.options.datasource = options.datasource;
} | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"DSSelectField",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"this",
".",
"options",
".",
"valueKey",
"=",
"options",
".",
"valueKey",
"||",
"\"value\"",
... | Setup the additional options for selectfield
@param {Object} options Options object as passed to the constructor | [
"Setup",
"the",
"additional",
"options",
"for",
"selectfield"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/DSSelectField.js#L25-L34 | |
42,651 | neyric/webhookit | public/javascripts/inputex/js/fields/DSSelectField.js | function (oRequest) {
if (!!this.options.datasource) {
this.options.datasource.sendRequest(oRequest, {success: this.onDatasourceSuccess, failure: this.onDatasourceFailure, scope: this});
}
} | javascript | function (oRequest) {
if (!!this.options.datasource) {
this.options.datasource.sendRequest(oRequest, {success: this.onDatasourceSuccess, failure: this.onDatasourceFailure, scope: this});
}
} | [
"function",
"(",
"oRequest",
")",
"{",
"if",
"(",
"!",
"!",
"this",
".",
"options",
".",
"datasource",
")",
"{",
"this",
".",
"options",
".",
"datasource",
".",
"sendRequest",
"(",
"oRequest",
",",
"{",
"success",
":",
"this",
".",
"onDatasourceSuccess",... | Send the datasource request | [
"Send",
"the",
"datasource",
"request"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/DSSelectField.js#L50-L54 | |
42,652 | neyric/webhookit | public/javascripts/inputex/js/fields/DSSelectField.js | function (items) {
var i, length;
// remove previous <option>s nodes
while (this.el.childNodes.length > 0) {
this.el.removeChild(this.el.childNodes[0]);
}
// add new options
for (i = 0, length = items.length; i < length ; i += 1) {
this.addChoice({ value: items[i][this.options.valueKe... | javascript | function (items) {
var i, length;
// remove previous <option>s nodes
while (this.el.childNodes.length > 0) {
this.el.removeChild(this.el.childNodes[0]);
}
// add new options
for (i = 0, length = items.length; i < length ; i += 1) {
this.addChoice({ value: items[i][this.options.valueKe... | [
"function",
"(",
"items",
")",
"{",
"var",
"i",
",",
"length",
";",
"// remove previous <option>s nodes",
"while",
"(",
"this",
".",
"el",
".",
"childNodes",
".",
"length",
">",
"0",
")",
"{",
"this",
".",
"el",
".",
"removeChild",
"(",
"this",
".",
"e... | Insert the options | [
"Insert",
"the",
"options"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/DSSelectField.js#L59-L72 | |
42,653 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(instanceObject) {
if(!instanceObject || !instanceObject["$schema"]) {
throw new Error("Invalid json schema instance object. Object must have a '$schema' property.");
}
var formDef = this.schemaToInputEx(instanceObject["$schema"]);
// Set the default value of each ... | javascript | function(instanceObject) {
if(!instanceObject || !instanceObject["$schema"]) {
throw new Error("Invalid json schema instance object. Object must have a '$schema' property.");
}
var formDef = this.schemaToInputEx(instanceObject["$schema"]);
// Set the default value of each ... | [
"function",
"(",
"instanceObject",
")",
"{",
"if",
"(",
"!",
"instanceObject",
"||",
"!",
"instanceObject",
"[",
"\"$schema\"",
"]",
")",
"{",
"throw",
"new",
"Error",
"(",
"\"Invalid json schema instance object. Object must have a '$schema' property.\"",
")",
";",
"}... | Create an inputEx Json form definition from a json schema instance object
Respect the "Self-Defined Schema Convention" | [
"Create",
"an",
"inputEx",
"Json",
"form",
"definition",
"from",
"a",
"json",
"schema",
"instance",
"object",
"Respect",
"the",
"Self",
"-",
"Defined",
"Schema",
"Convention"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L890-L904 | |
42,654 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function (config, sendUpdatedEvt) {
var position, choice;
position = this.getChoicePosition(config);
if (position !== -1) {
choice = this.choicesList[position];
// test if visible first in case we try to hide twice or more...
if (choice.visible) {
choice.visible = f... | javascript | function (config, sendUpdatedEvt) {
var position, choice;
position = this.getChoicePosition(config);
if (position !== -1) {
choice = this.choicesList[position];
// test if visible first in case we try to hide twice or more...
if (choice.visible) {
choice.visible = f... | [
"function",
"(",
"config",
",",
"sendUpdatedEvt",
")",
"{",
"var",
"position",
",",
"choice",
";",
"position",
"=",
"this",
".",
"getChoicePosition",
"(",
"config",
")",
";",
"if",
"(",
"position",
"!==",
"-",
"1",
")",
"{",
"choice",
"=",
"this",
".",... | Hide a choice
@param {Object} config An object targeting the choice to hide (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' }) | [
"Hide",
"a",
"choice"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L1013-L1040 | |
42,655 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(options) {
inputEx.Form.superclass.setOptions.call(this, options);
this.buttons = [];
this.options.buttons = options.buttons || [];
this.options.action = options.action;
this.options.method = options.method;
this.options.className = options.className || 'inputEx-Group';
t... | javascript | function(options) {
inputEx.Form.superclass.setOptions.call(this, options);
this.buttons = [];
this.options.buttons = options.buttons || [];
this.options.action = options.action;
this.options.method = options.method;
this.options.className = options.className || 'inputEx-Group';
t... | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"Form",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"this",
".",
"buttons",
"=",
"[",
"]",
";",
"this",
".",
"options",
".",
"buttons",
"=",
"options"... | Adds buttons and set ajax default parameters
@param {Object} options Options object as passed to the constructor | [
"Adds",
"buttons",
"and",
"set",
"ajax",
"default",
"parameters"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2255-L2287 | |
42,656 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
var buttonConf, button, i, buttonsNb = this.options.buttons.length;
this.buttonDiv = inputEx.cn('div', {className: 'inputEx-Form-buttonBar'});
for(i = 0 ; i < buttonsNb ; i++ ) {
buttonConf = this.options.buttons[i];
// Throw Error if button is undefi... | javascript | function() {
var buttonConf, button, i, buttonsNb = this.options.buttons.length;
this.buttonDiv = inputEx.cn('div', {className: 'inputEx-Form-buttonBar'});
for(i = 0 ; i < buttonsNb ; i++ ) {
buttonConf = this.options.buttons[i];
// Throw Error if button is undefi... | [
"function",
"(",
")",
"{",
"var",
"buttonConf",
",",
"button",
",",
"i",
",",
"buttonsNb",
"=",
"this",
".",
"options",
".",
"buttons",
".",
"length",
";",
"this",
".",
"buttonDiv",
"=",
"inputEx",
".",
"cn",
"(",
"'div'",
",",
"{",
"className",
":",... | Render the buttons | [
"Render",
"the",
"buttons"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2328-L2353 | |
42,657 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
if(this.options.ajax.showMask) { this.showMask(); }
var formValue = this.getValue();
// options.ajax.uri and options.ajax.method can also be functions that return a the uri/method depending of the value of the form
var uri = lang.isFunction(this.options.ajax.uri) ? this.options.ajax.uri(fo... | javascript | function() {
if(this.options.ajax.showMask) { this.showMask(); }
var formValue = this.getValue();
// options.ajax.uri and options.ajax.method can also be functions that return a the uri/method depending of the value of the form
var uri = lang.isFunction(this.options.ajax.uri) ? this.options.ajax.uri(fo... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"options",
".",
"ajax",
".",
"showMask",
")",
"{",
"this",
".",
"showMask",
"(",
")",
";",
"}",
"var",
"formValue",
"=",
"this",
".",
"getValue",
"(",
")",
";",
"// options.ajax.uri and options.ajax.meth... | Send the form value in JSON through an ajax request | [
"Send",
"the",
"form",
"value",
"in",
"JSON",
"through",
"an",
"ajax",
"request"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2425-L2489 | |
42,658 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
if(this.maskRendered) return;
// position as "relative" to position formMask inside as "absolute"
Dom.setStyle(this.divEl, "position", "relative");
// set zoom = 1 to fix hasLayout issue with IE6/7
if (YAHOO.env.ua.ie) { Dom.setStyle(this.divEl, "zoom", 1); }
// Rende... | javascript | function() {
if(this.maskRendered) return;
// position as "relative" to position formMask inside as "absolute"
Dom.setStyle(this.divEl, "position", "relative");
// set zoom = 1 to fix hasLayout issue with IE6/7
if (YAHOO.env.ua.ie) { Dom.setStyle(this.divEl, "zoom", 1); }
// Rende... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"maskRendered",
")",
"return",
";",
"// position as \"relative\" to position formMask inside as \"absolute\"",
"Dom",
".",
"setStyle",
"(",
"this",
".",
"divEl",
",",
"\"position\"",
",",
"\"relative\"",
")",
";",
... | Create a Mask over the form | [
"Create",
"a",
"Mask",
"over",
"the",
"form"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2494-L2515 | |
42,659 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
inputEx.Form.superclass.enable.call(this);
for (var i = 0 ; i < this.buttons.length ; i++) {
this.buttons[i].enable();
}
} | javascript | function() {
inputEx.Form.superclass.enable.call(this);
for (var i = 0 ; i < this.buttons.length ; i++) {
this.buttons[i].enable();
}
} | [
"function",
"(",
")",
"{",
"inputEx",
".",
"Form",
".",
"superclass",
".",
"enable",
".",
"call",
"(",
"this",
")",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"buttons",
".",
"length",
";",
"i",
"++",
")",
"{",
"this",
... | Enable all fields and buttons in the form | [
"Enable",
"all",
"fields",
"and",
"buttons",
"in",
"the",
"form"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2561-L2567 | |
42,660 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
inputEx.Form.superclass.disable.call(this);
for (var i = 0 ; i < this.buttons.length ; i++) {
this.buttons[i].disable();
}
} | javascript | function() {
inputEx.Form.superclass.disable.call(this);
for (var i = 0 ; i < this.buttons.length ; i++) {
this.buttons[i].disable();
}
} | [
"function",
"(",
")",
"{",
"inputEx",
".",
"Form",
".",
"superclass",
".",
"disable",
".",
"call",
"(",
"this",
")",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"buttons",
".",
"length",
";",
"i",
"++",
")",
"{",
"this",
... | Disable all fields and buttons in the form | [
"Disable",
"all",
"fields",
"and",
"buttons",
"in",
"the",
"form"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2572-L2578 | |
42,661 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(parentEl) {
this.appendSeparator(0);
if(!this.options.fields) {return;}
var i, n=this.options.fields.length, f, field, fieldEl,t;
for(i = 0 ; i < n ; i++) {
f = this.options.fields[i];
if (this.options.required) {f.required = true;}
field = this.renderF... | javascript | function(parentEl) {
this.appendSeparator(0);
if(!this.options.fields) {return;}
var i, n=this.options.fields.length, f, field, fieldEl,t;
for(i = 0 ; i < n ; i++) {
f = this.options.fields[i];
if (this.options.required) {f.required = true;}
field = this.renderF... | [
"function",
"(",
"parentEl",
")",
"{",
"this",
".",
"appendSeparator",
"(",
"0",
")",
";",
"if",
"(",
"!",
"this",
".",
"options",
".",
"fields",
")",
"{",
"return",
";",
"}",
"var",
"i",
",",
"n",
"=",
"this",
".",
"options",
".",
"fields",
".",... | Render the subfields | [
"Render",
"the",
"subfields"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2689-L2718 | |
42,662 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(fieldOptions) {
// Subfields should inherit required property
if (this.options.required) {
fieldOptions.required = true;
}
return inputEx.CombineField.superclass.renderField.call(this, fieldOptions);
} | javascript | function(fieldOptions) {
// Subfields should inherit required property
if (this.options.required) {
fieldOptions.required = true;
}
return inputEx.CombineField.superclass.renderField.call(this, fieldOptions);
} | [
"function",
"(",
"fieldOptions",
")",
"{",
"// Subfields should inherit required property",
"if",
"(",
"this",
".",
"options",
".",
"required",
")",
"{",
"fieldOptions",
".",
"required",
"=",
"true",
";",
"}",
"return",
"inputEx",
".",
"CombineField",
".",
"supe... | Override to force required option on each subfield
@param {Object} fieldOptions The field properties as required by inputEx() | [
"Override",
"to",
"force",
"required",
"option",
"on",
"each",
"subfield"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2724-L2732 | |
42,663 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(i) {
if(this.options.separators && this.options.separators[i]) {
var sep = inputEx.cn('div', {className: 'inputEx-CombineField-separator'}, null, this.options.separators[i]);
this.divEl.appendChild(sep);
}
} | javascript | function(i) {
if(this.options.separators && this.options.separators[i]) {
var sep = inputEx.cn('div', {className: 'inputEx-CombineField-separator'}, null, this.options.separators[i]);
this.divEl.appendChild(sep);
}
} | [
"function",
"(",
"i",
")",
"{",
"if",
"(",
"this",
".",
"options",
".",
"separators",
"&&",
"this",
".",
"options",
".",
"separators",
"[",
"i",
"]",
")",
"{",
"var",
"sep",
"=",
"inputEx",
".",
"cn",
"(",
"'div'",
",",
"{",
"className",
":",
"'i... | Add a separator to the divEl | [
"Add",
"a",
"separator",
"to",
"the",
"divEl"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2753-L2758 | |
42,664 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(options) {
inputEx.AutoComplete.superclass.setOptions.call(this, options);
// Overwrite options
this.options.className = options.className ? options.className : 'inputEx-Field inputEx-AutoComplete';
// Added options
this.options.datasource = options.datasource;
thi... | javascript | function(options) {
inputEx.AutoComplete.superclass.setOptions.call(this, options);
// Overwrite options
this.options.className = options.className ? options.className : 'inputEx-Field inputEx-AutoComplete';
// Added options
this.options.datasource = options.datasource;
thi... | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"AutoComplete",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"// Overwrite options",
"this",
".",
"options",
".",
"className",
"=",
"options",
".",
"className"... | Adds autocomplete options
@param {Object} options Options object as passed to the constructor | [
"Adds",
"autocomplete",
"options"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3134-L3146 | |
42,665 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
// This element wraps the input node in a float: none div
this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'});
// Attributes of the input field
var attributes = {
type: 'text',
id: YAHOO.util.Dom.generateId()
};
if(thi... | javascript | function() {
// This element wraps the input node in a float: none div
this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'});
// Attributes of the input field
var attributes = {
type: 'text',
id: YAHOO.util.Dom.generateId()
};
if(thi... | [
"function",
"(",
")",
"{",
"// This element wraps the input node in a float: none div",
"this",
".",
"wrapEl",
"=",
"inputEx",
".",
"cn",
"(",
"'div'",
",",
"{",
"className",
":",
"'inputEx-StringField-wrapper'",
"}",
")",
";",
"// Attributes of the input field",
"var",... | Render the hidden list element | [
"Render",
"the",
"hidden",
"list",
"element"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3164-L3199 | |
42,666 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
// Call this function only when this.el AND this.listEl are available
if(!this._nElementsReady) { this._nElementsReady = 0; }
this._nElementsReady++;
if(this._nElementsReady != 2) return;
if(!lang.isUndefined(this.options.datasourceParameters))
{
for (param in ... | javascript | function() {
// Call this function only when this.el AND this.listEl are available
if(!this._nElementsReady) { this._nElementsReady = 0; }
this._nElementsReady++;
if(this._nElementsReady != 2) return;
if(!lang.isUndefined(this.options.datasourceParameters))
{
for (param in ... | [
"function",
"(",
")",
"{",
"// Call this function only when this.el AND this.listEl are available",
"if",
"(",
"!",
"this",
".",
"_nElementsReady",
")",
"{",
"this",
".",
"_nElementsReady",
"=",
"0",
";",
"}",
"this",
".",
"_nElementsReady",
"++",
";",
"if",
"(",
... | Build the YUI autocompleter | [
"Build",
"the",
"YUI",
"autocompleter"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3204-L3233 | |
42,667 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(e) {
this.setClassFromState();
// Clear the field when no value
if (this.hiddenEl.value != this.el.value) this.hiddenEl.value = this.el.value;
lang.later(50, this, function() {
if(this.el.value == "") {
this.setValue("");
}
});
} | javascript | function(e) {
this.setClassFromState();
// Clear the field when no value
if (this.hiddenEl.value != this.el.value) this.hiddenEl.value = this.el.value;
lang.later(50, this, function() {
if(this.el.value == "") {
this.setValue("");
}
});
} | [
"function",
"(",
"e",
")",
"{",
"this",
".",
"setClassFromState",
"(",
")",
";",
"// Clear the field when no value ",
"if",
"(",
"this",
".",
"hiddenEl",
".",
"value",
"!=",
"this",
".",
"el",
".",
"value",
")",
"this",
".",
"hiddenEl",
".",
"value",
"="... | onChange event handler
@param {Event} e The original 'change' event | [
"onChange",
"event",
"handler"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3256-L3265 | |
42,668 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(options) {
inputEx.ColorField.superclass.setOptions.call(this, options);
// Overwrite options
this.options.className = options.className ? options.className : 'inputEx-Field inputEx-ColorField inputEx-PickerField';
// Added options
this.options.palette = options.palette;
this.... | javascript | function(options) {
inputEx.ColorField.superclass.setOptions.call(this, options);
// Overwrite options
this.options.className = options.className ? options.className : 'inputEx-Field inputEx-ColorField inputEx-PickerField';
// Added options
this.options.palette = options.palette;
this.... | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"ColorField",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"// Overwrite options",
"this",
".",
"options",
".",
"className",
"=",
"options",
".",
"className",
... | Adds the 'inputEx-ColorField' default className
@param {Object} options Options object as passed to the constructor | [
"Adds",
"the",
"inputEx",
"-",
"ColorField",
"default",
"className"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3486-L3498 | |
42,669 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
var grid, eventDelegation, square, i;
// remember squares
this.squares = [];
// container
grid = inputEx.cn('div', {className: 'inputEx-ColorField-Grid'});
// Is event delegation available ?
// (YAHOO.util.Event.delegate method is in "event-delegate" YUI-module)... | javascript | function() {
var grid, eventDelegation, square, i;
// remember squares
this.squares = [];
// container
grid = inputEx.cn('div', {className: 'inputEx-ColorField-Grid'});
// Is event delegation available ?
// (YAHOO.util.Event.delegate method is in "event-delegate" YUI-module)... | [
"function",
"(",
")",
"{",
"var",
"grid",
",",
"eventDelegation",
",",
"square",
",",
"i",
";",
"// remember squares",
"this",
".",
"squares",
"=",
"[",
"]",
";",
"// container",
"grid",
"=",
"inputEx",
".",
"cn",
"(",
"'div'",
",",
"{",
"className",
"... | This creates a color grid | [
"This",
"creates",
"a",
"color",
"grid"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3607-L3663 | |
42,670 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(e,square,container) {
// Stop the event to prevent a selection
Event.stopEvent(e);
// Overlay closure
this.oOverlay.hide();
// SetValue
var color = Dom.getStyle(square,'background-color');
var hexaColor = inputEx.ColorField.ensureHexa(color);
this.setValue(hexaColor... | javascript | function(e,square,container) {
// Stop the event to prevent a selection
Event.stopEvent(e);
// Overlay closure
this.oOverlay.hide();
// SetValue
var color = Dom.getStyle(square,'background-color');
var hexaColor = inputEx.ColorField.ensureHexa(color);
this.setValue(hexaColor... | [
"function",
"(",
"e",
",",
"square",
",",
"container",
")",
"{",
"// Stop the event to prevent a selection",
"Event",
".",
"stopEvent",
"(",
"e",
")",
";",
"// Overlay closure",
"this",
".",
"oOverlay",
".",
"hide",
"(",
")",
";",
"// SetValue",
"var",
"color"... | Handle a color selection
@param {Event} e The original click event | [
"Handle",
"a",
"color",
"selection"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3669-L3682 | |
42,671 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(options) {
inputEx.DateField.superclass.setOptions.call(this, options);
// Overwrite options
this.options.className = options.className ? options.className : 'inputEx-Field inputEx-DateField';
this.options.messages.invalid = inputEx.messages.invalidDate ? inputEx.messages.invalidDate : "In... | javascript | function(options) {
inputEx.DateField.superclass.setOptions.call(this, options);
// Overwrite options
this.options.className = options.className ? options.className : 'inputEx-Field inputEx-DateField';
this.options.messages.invalid = inputEx.messages.invalidDate ? inputEx.messages.invalidDate : "In... | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"DateField",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"// Overwrite options",
"this",
".",
"options",
".",
"className",
"=",
"options",
".",
"className",
... | Adds the 'inputEx-DateField' default className
@param {Object} options Options object as passed to the constructor | [
"Adds",
"the",
"inputEx",
"-",
"DateField",
"default",
"className"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3842-L3852 | |
42,672 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
var value = this.el.value;
var separator = this.options.dateFormat.match(/[^Ymd ]/g)[0];
var ladate = value.split(separator);
if( ladate.length != 3) { return false; }
if ( isNaN(parseInt(ladate[0],10)) || isNaN(parseInt(ladate[1],10)) || isNaN(parseInt(ladate[2],10))) { return false; }... | javascript | function() {
var value = this.el.value;
var separator = this.options.dateFormat.match(/[^Ymd ]/g)[0];
var ladate = value.split(separator);
if( ladate.length != 3) { return false; }
if ( isNaN(parseInt(ladate[0],10)) || isNaN(parseInt(ladate[1],10)) || isNaN(parseInt(ladate[2],10))) { return false; }... | [
"function",
"(",
")",
"{",
"var",
"value",
"=",
"this",
".",
"el",
".",
"value",
";",
"var",
"separator",
"=",
"this",
".",
"options",
".",
"dateFormat",
".",
"match",
"(",
"/",
"[^Ymd ]",
"/",
"g",
")",
"[",
"0",
"]",
";",
"var",
"ladate",
"=",
... | Specific Date validation depending of the 'format' option | [
"Specific",
"Date",
"validation",
"depending",
"of",
"the",
"format",
"option"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3857-L3873 | |
42,673 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(val, sendUpdatedEvt) {
// Don't try to parse a date if there is no date
if( val === '' ) {
inputEx.DateField.superclass.setValue.call(this, '', sendUpdatedEvt);
return;
}
var str = "";
if (val instanceof Date) {
str = inputEx.DateField.formatDate(val, this.options.dateFor... | javascript | function(val, sendUpdatedEvt) {
// Don't try to parse a date if there is no date
if( val === '' ) {
inputEx.DateField.superclass.setValue.call(this, '', sendUpdatedEvt);
return;
}
var str = "";
if (val instanceof Date) {
str = inputEx.DateField.formatDate(val, this.options.dateFor... | [
"function",
"(",
"val",
",",
"sendUpdatedEvt",
")",
"{",
"// Don't try to parse a date if there is no date",
"if",
"(",
"val",
"===",
"''",
")",
"{",
"inputEx",
".",
"DateField",
".",
"superclass",
".",
"setValue",
".",
"call",
"(",
"this",
",",
"''",
",",
"... | Format the date according to options.dateFormat
@param {Date} val Date to set
@param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) | [
"Format",
"the",
"date",
"according",
"to",
"options",
".",
"dateFormat"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3881-L3902 | |
42,674 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(forceDate) {
// let parent class function check if typeInvite, etc...
var value = inputEx.DateField.superclass.getValue.call(this);
// Hack to validate if field not required and empty
if (value === '') { return '';}
var finalDate = inputEx.DateField.parseWithFormat(value,this.options.dateF... | javascript | function(forceDate) {
// let parent class function check if typeInvite, etc...
var value = inputEx.DateField.superclass.getValue.call(this);
// Hack to validate if field not required and empty
if (value === '') { return '';}
var finalDate = inputEx.DateField.parseWithFormat(value,this.options.dateF... | [
"function",
"(",
"forceDate",
")",
"{",
"// let parent class function check if typeInvite, etc...",
"var",
"value",
"=",
"inputEx",
".",
"DateField",
".",
"superclass",
".",
"getValue",
".",
"call",
"(",
"this",
")",
";",
"// Hack to validate if field not required and emp... | Return the date
@param {Boolean} forceDate Skip the valueFormat option if set to truthy
@return {String || Date} Formatted date using the valueFormat or a javascript Date instance | [
"Return",
"the",
"date"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L3909-L3924 | |
42,675 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(value, sendUpdatedEvt) {
var values = [];
// !value catches "" (empty field), and invalid dates
if(!value || !lang.isFunction(value.getTime) || !lang.isNumber(value.getTime()) ) {
values[this.monthIndex] = "";
values[this.yearIndex] = "";
values[this.dayIndex... | javascript | function(value, sendUpdatedEvt) {
var values = [];
// !value catches "" (empty field), and invalid dates
if(!value || !lang.isFunction(value.getTime) || !lang.isNumber(value.getTime()) ) {
values[this.monthIndex] = "";
values[this.yearIndex] = "";
values[this.dayIndex... | [
"function",
"(",
"value",
",",
"sendUpdatedEvt",
")",
"{",
"var",
"values",
"=",
"[",
"]",
";",
"// !value catches \"\" (empty field), and invalid dates",
"if",
"(",
"!",
"value",
"||",
"!",
"lang",
".",
"isFunction",
"(",
"value",
".",
"getTime",
")",
"||",
... | Set the value. Format the date according to options.dateFormat
@param {Date} val Date to set
@param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) | [
"Set",
"the",
"value",
".",
"Format",
"the",
"date",
"according",
"to",
"options",
".",
"dateFormat"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4006-L4020 | |
42,676 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(options) {
inputEx.DatePickerField.superclass.setOptions.call(this, options);
// Overwrite default options
this.options.className = options.className ? options.className : 'inputEx-Field inputEx-DateField inputEx-PickerField inputEx-DatePickerField';
this.options.readonly = YAHO... | javascript | function(options) {
inputEx.DatePickerField.superclass.setOptions.call(this, options);
// Overwrite default options
this.options.className = options.className ? options.className : 'inputEx-Field inputEx-DateField inputEx-PickerField inputEx-DatePickerField';
this.options.readonly = YAHO... | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"DatePickerField",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"// Overwrite default options",
"this",
".",
"options",
".",
"className",
"=",
"options",
".",
... | Set the default date picker CSS classes
@param {Object} options Options object as passed to the constructor | [
"Set",
"the",
"default",
"date",
"picker",
"CSS",
"classes"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4134-L4144 | |
42,677 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
inputEx.DatePickerField.superclass.renderComponent.call(this);
// Create overlay
this.oOverlay = new YAHOO.widget.Overlay(Dom.generateId(), { visible: false });
this.oOverlay.setBody(" ");
this.oOverlay.body.id = Dom.generateId();
// Create bu... | javascript | function() {
inputEx.DatePickerField.superclass.renderComponent.call(this);
// Create overlay
this.oOverlay = new YAHOO.widget.Overlay(Dom.generateId(), { visible: false });
this.oOverlay.setBody(" ");
this.oOverlay.body.id = Dom.generateId();
// Create bu... | [
"function",
"(",
")",
"{",
"inputEx",
".",
"DatePickerField",
".",
"superclass",
".",
"renderComponent",
".",
"call",
"(",
"this",
")",
";",
"// Create overlay",
"this",
".",
"oOverlay",
"=",
"new",
"YAHOO",
".",
"widget",
".",
"Overlay",
"(",
"Dom",
".",
... | Render the input field and the minical container | [
"Render",
"the",
"input",
"field",
"and",
"the",
"minical",
"container"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4149-L4188 | |
42,678 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
// if already rendered, ignore call
if (!!this.calendarRendered) return;
// Render the calendar
var calendarId = Dom.generateId();
this.calendar = new YAHOO.widget.Calendar(calendarId,this.oOverlay.body.id, this.options.calendar );
/*
this.cale... | javascript | function() {
// if already rendered, ignore call
if (!!this.calendarRendered) return;
// Render the calendar
var calendarId = Dom.generateId();
this.calendar = new YAHOO.widget.Calendar(calendarId,this.oOverlay.body.id, this.options.calendar );
/*
this.cale... | [
"function",
"(",
")",
"{",
"// if already rendered, ignore call",
"if",
"(",
"!",
"!",
"this",
".",
"calendarRendered",
")",
"return",
";",
"// Render the calendar",
"var",
"calendarId",
"=",
"Dom",
".",
"generateId",
"(",
")",
";",
"this",
".",
"calendar",
"=... | Called ONCE to render the calendar lazily | [
"Called",
"ONCE",
"to",
"render",
"the",
"calendar",
"lazily"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4194-L4286 | |
42,679 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(e) {
var date = this.getValue(true);
if (!!this.calendar) {
if(!!date) {
// HACK: don't fire Field updatedEvt when selecting date
this.ignoreBeforeShowOverlayCall = true;
// select the previous date in calendar
this.calendar.select(date);
t... | javascript | function(e) {
var date = this.getValue(true);
if (!!this.calendar) {
if(!!date) {
// HACK: don't fire Field updatedEvt when selecting date
this.ignoreBeforeShowOverlayCall = true;
// select the previous date in calendar
this.calendar.select(date);
t... | [
"function",
"(",
"e",
")",
"{",
"var",
"date",
"=",
"this",
".",
"getValue",
"(",
"true",
")",
";",
"if",
"(",
"!",
"!",
"this",
".",
"calendar",
")",
"{",
"if",
"(",
"!",
"!",
"date",
")",
"{",
"// HACK: don't fire Field updatedEvt when selecting date",... | Select the right date and display the right page on calendar, when the field has a value | [
"Select",
"the",
"right",
"date",
"and",
"display",
"the",
"right",
"page",
"on",
"calendar",
"when",
"the",
"field",
"has",
"a",
"value"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4291-L4307 | |
42,680 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
this.type = inputEx.HiddenField;
this.divEl = inputEx.cn('div', null, {display: 'none'});
this.el = inputEx.cn('input', {type: 'hidden'});
this.rawValue = ''; // initialize the rawValue with '' (default value of a hidden field)
if(this.options.name) this.el.name = this.options.... | javascript | function() {
this.type = inputEx.HiddenField;
this.divEl = inputEx.cn('div', null, {display: 'none'});
this.el = inputEx.cn('input', {type: 'hidden'});
this.rawValue = ''; // initialize the rawValue with '' (default value of a hidden field)
if(this.options.name) this.el.name = this.options.... | [
"function",
"(",
")",
"{",
"this",
".",
"type",
"=",
"inputEx",
".",
"HiddenField",
";",
"this",
".",
"divEl",
"=",
"inputEx",
".",
"cn",
"(",
"'div'",
",",
"null",
",",
"{",
"display",
":",
"'none'",
"}",
")",
";",
"this",
".",
"el",
"=",
"input... | Doesn't render much... | [
"Doesn",
"t",
"render",
"much",
"..."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4498-L4507 | |
42,681 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(options) {
inputEx.IntegerField.superclass.setOptions.call(this, options);
this.options.negative = lang.isUndefined(options.negative) ? false : options.negative;
this.options.min = lang.isUndefined(options.min) ? (this.options.negative ? -Infinity : 0) : parseInt(options.min,10);
... | javascript | function(options) {
inputEx.IntegerField.superclass.setOptions.call(this, options);
this.options.negative = lang.isUndefined(options.negative) ? false : options.negative;
this.options.min = lang.isUndefined(options.min) ? (this.options.negative ? -Infinity : 0) : parseInt(options.min,10);
... | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"IntegerField",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"this",
".",
"options",
".",
"negative",
"=",
"lang",
".",
"isUndefined",
"(",
"options",
".",... | Adds the negative, min, and max options
@param {Object} options | [
"Adds",
"the",
"negative",
"min",
"and",
"max",
"options"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4834-L4840 | |
42,682 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
var v = this.getValue(), str_value = inputEx.IntegerField.superclass.getValue.call(this);
// empty field
if (v === '') {
// validate only if not required
return !this.options.required;
}
if (isNaN(v)) {
return false;
}
... | javascript | function() {
var v = this.getValue(), str_value = inputEx.IntegerField.superclass.getValue.call(this);
// empty field
if (v === '') {
// validate only if not required
return !this.options.required;
}
if (isNaN(v)) {
return false;
}
... | [
"function",
"(",
")",
"{",
"var",
"v",
"=",
"this",
".",
"getValue",
"(",
")",
",",
"str_value",
"=",
"inputEx",
".",
"IntegerField",
".",
"superclass",
".",
"getValue",
".",
"call",
"(",
"this",
")",
";",
"// empty field",
"if",
"(",
"v",
"===",
"''... | Validate if is a number | [
"Validate",
"if",
"is",
"a",
"number"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L4864-L4880 | |
42,683 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(value) {
// Render the subField
var subFieldEl = this.renderSubField(value);
if(this.options.name) {
subFieldEl.setFieldName(this.options.name+"["+this.subFields.length+"]");
}
// Adds it to the local list
this.subFields.push(subFieldEl);
return subFieldEl;
} | javascript | function(value) {
// Render the subField
var subFieldEl = this.renderSubField(value);
if(this.options.name) {
subFieldEl.setFieldName(this.options.name+"["+this.subFields.length+"]");
}
// Adds it to the local list
this.subFields.push(subFieldEl);
return subFieldEl;
} | [
"function",
"(",
"value",
")",
"{",
"// Render the subField",
"var",
"subFieldEl",
"=",
"this",
".",
"renderSubField",
"(",
"value",
")",
";",
"if",
"(",
"this",
".",
"options",
".",
"name",
")",
"{",
"subFieldEl",
".",
"setFieldName",
"(",
"this",
".",
... | Adds an element
@param {Any} The initial value of the subfield to create
@return {inputEx.Field} SubField added instance | [
"Adds",
"an",
"element"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5071-L5084 | |
42,684 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(e) {
var childElement = Event.getTarget(e).parentNode;
var previousChildNode = null;
var nodeIndex = -1;
for(var i = 1 ; i < childElement.parentNode.childNodes.length ; i++) {
var el=childElement.parentNode.childNodes[i];
if(el == childElement) {
previousChildNode =... | javascript | function(e) {
var childElement = Event.getTarget(e).parentNode;
var previousChildNode = null;
var nodeIndex = -1;
for(var i = 1 ; i < childElement.parentNode.childNodes.length ; i++) {
var el=childElement.parentNode.childNodes[i];
if(el == childElement) {
previousChildNode =... | [
"function",
"(",
"e",
")",
"{",
"var",
"childElement",
"=",
"Event",
".",
"getTarget",
"(",
"e",
")",
".",
"parentNode",
";",
"var",
"previousChildNode",
"=",
"null",
";",
"var",
"nodeIndex",
"=",
"-",
"1",
";",
"for",
"(",
"var",
"i",
"=",
"1",
";... | Switch a subField with its previous one
Called when the user clicked on the up arrow of a sortable list
@param {Event} e Original click event | [
"Switch",
"a",
"subField",
"with",
"its",
"previous",
"one",
"Called",
"when",
"the",
"user",
"clicked",
"on",
"the",
"up",
"arrow",
"of",
"a",
"sortable",
"list"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5188-L5228 | |
42,685 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(e) {
Event.stopEvent(e);
// Prevent removing a field if already at minItems
if( lang.isNumber(this.options.minItems) && this.subFields.length <= this.options.minItems ) {
return;
}
// Get the wrapping div element
var elementDiv = Event.getTarget(e).parentNode... | javascript | function(e) {
Event.stopEvent(e);
// Prevent removing a field if already at minItems
if( lang.isNumber(this.options.minItems) && this.subFields.length <= this.options.minItems ) {
return;
}
// Get the wrapping div element
var elementDiv = Event.getTarget(e).parentNode... | [
"function",
"(",
"e",
")",
"{",
"Event",
".",
"stopEvent",
"(",
"e",
")",
";",
"// Prevent removing a field if already at minItems",
"if",
"(",
"lang",
".",
"isNumber",
"(",
"this",
".",
"options",
".",
"minItems",
")",
"&&",
"this",
".",
"subFields",
".",
... | Called when the user clicked on a delete button.
@param {Event} e The original click event | [
"Called",
"when",
"the",
"user",
"clicked",
"on",
"a",
"delete",
"button",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5280-L5313 | |
42,686 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(options) {
inputEx.NumberField.superclass.setOptions.call(this, options);
this.options.min = lang.isUndefined(options.min) ? -Infinity : parseFloat(options.min);
this.options.max = lang.isUndefined(options.max) ? Infinity : parseFloat(options.max);
} | javascript | function(options) {
inputEx.NumberField.superclass.setOptions.call(this, options);
this.options.min = lang.isUndefined(options.min) ? -Infinity : parseFloat(options.min);
this.options.max = lang.isUndefined(options.max) ? Infinity : parseFloat(options.max);
} | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"NumberField",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"this",
".",
"options",
".",
"min",
"=",
"lang",
".",
"isUndefined",
"(",
"options",
".",
"mi... | Adds the min, and max options
@param {Object} options | [
"Adds",
"the",
"min",
"and",
"max",
"options"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5360-L5365 | |
42,687 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
var v = this.getValue(), str_value = inputEx.NumberField.superclass.getValue.call(this);
// empty field
if (v === '') {
// validate only if not required
return !this.options.required;
}
if (isNaN(v)) {
return false;
}
... | javascript | function() {
var v = this.getValue(), str_value = inputEx.NumberField.superclass.getValue.call(this);
// empty field
if (v === '') {
// validate only if not required
return !this.options.required;
}
if (isNaN(v)) {
return false;
}
... | [
"function",
"(",
")",
"{",
"var",
"v",
"=",
"this",
".",
"getValue",
"(",
")",
",",
"str_value",
"=",
"inputEx",
".",
"NumberField",
".",
"superclass",
".",
"getValue",
".",
"call",
"(",
"this",
")",
";",
"// empty field",
"if",
"(",
"v",
"===",
"''"... | Check if the entered number is a float | [
"Check",
"if",
"the",
"entered",
"number",
"is",
"a",
"float"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5388-L5405 | |
42,688 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(options) {
inputEx.PasswordField.superclass.setOptions.call(this, options);
this.options.className = options.className ? options.className : "inputEx-Field inputEx-PasswordField";
// Add the password regexp (overridable)
this.options.regexp = options.regexp || inputEx.regexps.password... | javascript | function(options) {
inputEx.PasswordField.superclass.setOptions.call(this, options);
this.options.className = options.className ? options.className : "inputEx-Field inputEx-PasswordField";
// Add the password regexp (overridable)
this.options.regexp = options.regexp || inputEx.regexps.password... | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"PasswordField",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"this",
".",
"options",
".",
"className",
"=",
"options",
".",
"className",
"?",
"options",
"... | Add the password regexp, strengthIndicator, capsLockWarning
@param {Object} options Options object as passed to the constructor | [
"Add",
"the",
"password",
"regexp",
"strengthIndicator",
"capsLockWarning"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5444-L5464 | |
42,689 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
// IE doesn't want to set the "type" property to 'password' if the node has a parent
// even if the parent is not in the DOM yet !!
// This element wraps the input node in a float: none div
this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'});
// At... | javascript | function() {
// IE doesn't want to set the "type" property to 'password' if the node has a parent
// even if the parent is not in the DOM yet !!
// This element wraps the input node in a float: none div
this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'});
// At... | [
"function",
"(",
")",
"{",
"// IE doesn't want to set the \"type\" property to 'password' if the node has a parent",
"// even if the parent is not in the DOM yet !!",
"// This element wraps the input node in a float: none div",
"this",
".",
"wrapEl",
"=",
"inputEx",
".",
"cn",
"(",
"'d... | Set the el type to 'password' | [
"Set",
"the",
"el",
"type",
"to",
"password"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5469-L5507 | |
42,690 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
if(this.options.confirmPasswordField) {
if(this.options.confirmPasswordField.getValue() != this.getValue() ) {
return false;
}
}
return inputEx.PasswordField.superclass.validate.call(this);
} | javascript | function() {
if(this.options.confirmPasswordField) {
if(this.options.confirmPasswordField.getValue() != this.getValue() ) {
return false;
}
}
return inputEx.PasswordField.superclass.validate.call(this);
} | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"options",
".",
"confirmPasswordField",
")",
"{",
"if",
"(",
"this",
".",
"options",
".",
"confirmPasswordField",
".",
"getValue",
"(",
")",
"!=",
"this",
".",
"getValue",
"(",
")",
")",
"{",
"return",... | The validation adds the confirmation password field support | [
"The",
"validation",
"adds",
"the",
"confirmation",
"password",
"field",
"support"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5522-L5529 | |
42,691 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(e) {
inputEx.PasswordField.superclass.onInput.call(this,e);
if(this.options.confirmationPasswordField) {
this.options.confirmationPasswordField.setClassFromState();
}
} | javascript | function(e) {
inputEx.PasswordField.superclass.onInput.call(this,e);
if(this.options.confirmationPasswordField) {
this.options.confirmationPasswordField.setClassFromState();
}
} | [
"function",
"(",
"e",
")",
"{",
"inputEx",
".",
"PasswordField",
".",
"superclass",
".",
"onInput",
".",
"call",
"(",
"this",
",",
"e",
")",
";",
"if",
"(",
"this",
".",
"options",
".",
"confirmationPasswordField",
")",
"{",
"this",
".",
"options",
"."... | Update the state of the confirmation field
@param {Event} e The original input event | [
"Update",
"the",
"state",
"of",
"the",
"confirmation",
"field"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5545-L5550 | |
42,692 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(e) {
inputEx.PasswordField.superclass.onKeyPress.call(this,e);
if(this.options.capsLockWarning) {
var ev = e ? e : window.event;
if (!ev) {
return;
}
var targ = ev.target ? ev.target : ev.srcElement;
// get key pressed
var wh... | javascript | function(e) {
inputEx.PasswordField.superclass.onKeyPress.call(this,e);
if(this.options.capsLockWarning) {
var ev = e ? e : window.event;
if (!ev) {
return;
}
var targ = ev.target ? ev.target : ev.srcElement;
// get key pressed
var wh... | [
"function",
"(",
"e",
")",
"{",
"inputEx",
".",
"PasswordField",
".",
"superclass",
".",
"onKeyPress",
".",
"call",
"(",
"this",
",",
"e",
")",
";",
"if",
"(",
"this",
".",
"options",
".",
"capsLockWarning",
")",
"{",
"var",
"ev",
"=",
"e",
"?",
"e... | callback to display the capsLockWarning | [
"callback",
"to",
"display",
"the",
"capsLockWarning"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5555-L5584 | |
42,693 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(e) {
inputEx.PasswordField.superclass.onKeyUp.call(this,e);
if(this.options.strengthIndicator) {
lang.later( 0, this, this.updateStrengthIndicator);
}
} | javascript | function(e) {
inputEx.PasswordField.superclass.onKeyUp.call(this,e);
if(this.options.strengthIndicator) {
lang.later( 0, this, this.updateStrengthIndicator);
}
} | [
"function",
"(",
"e",
")",
"{",
"inputEx",
".",
"PasswordField",
".",
"superclass",
".",
"onKeyUp",
".",
"call",
"(",
"this",
",",
"e",
")",
";",
"if",
"(",
"this",
".",
"options",
".",
"strengthIndicator",
")",
"{",
"lang",
".",
"later",
"(",
"0",
... | onkeyup callback to update the strength indicator | [
"onkeyup",
"callback",
"to",
"update",
"the",
"strength",
"indicator"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5589-L5594 | |
42,694 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function (options) {
var i, length;
inputEx.RadioField.superclass.setOptions.call(this, options);
// Display mode
this.options.display = options.display === "vertically" ? "vertically" : "inline"; // default "inline"
// Classname
this.options.className = options.className ? options.cla... | javascript | function (options) {
var i, length;
inputEx.RadioField.superclass.setOptions.call(this, options);
// Display mode
this.options.display = options.display === "vertically" ? "vertically" : "inline"; // default "inline"
// Classname
this.options.className = options.className ? options.cla... | [
"function",
"(",
"options",
")",
"{",
"var",
"i",
",",
"length",
";",
"inputEx",
".",
"RadioField",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"// Display mode",
"this",
".",
"options",
".",
"display",
"=",
... | Adds the Radio button specific options
@param {Object} options Options object as passed to the constructor | [
"Adds",
"the",
"Radio",
"button",
"specific",
"options"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5713-L5756 | |
42,695 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function () {
// Delegate event listening because list of choices is dynamic
// so we can't listen on each <input type="radio" class='inputEx-RadioField-radio' />
// Change event (IE does not fire "change" event, so listen to click instead)
Event.delegate(this.fieldContainer, YAHOO.env.ua.ie ? "clic... | javascript | function () {
// Delegate event listening because list of choices is dynamic
// so we can't listen on each <input type="radio" class='inputEx-RadioField-radio' />
// Change event (IE does not fire "change" event, so listen to click instead)
Event.delegate(this.fieldContainer, YAHOO.env.ua.ie ? "clic... | [
"function",
"(",
")",
"{",
"// Delegate event listening because list of choices is dynamic",
"// so we can't listen on each <input type=\"radio\" class='inputEx-RadioField-radio' />",
"// Change event (IE does not fire \"change\" event, so listen to click instead)",
"Event",
".",
"delegate",
"("... | Listen for change events on all radios | [
"Listen",
"for",
"change",
"events",
"on",
"all",
"radios"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5813-L5849 | |
42,696 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function () {
var i, length;
for (i = 0, length = this.choicesList.length ; i < length ; i += 1) {
if (this.choicesList[i].node.firstChild.checked) {
Dom.addClass(this.choicesList[i].node,"inputEx-selected");
} else {
Dom.removeClass(this.choicesList[i].node,"inputEx-selected");
... | javascript | function () {
var i, length;
for (i = 0, length = this.choicesList.length ; i < length ; i += 1) {
if (this.choicesList[i].node.firstChild.checked) {
Dom.addClass(this.choicesList[i].node,"inputEx-selected");
} else {
Dom.removeClass(this.choicesList[i].node,"inputEx-selected");
... | [
"function",
"(",
")",
"{",
"var",
"i",
",",
"length",
";",
"for",
"(",
"i",
"=",
"0",
",",
"length",
"=",
"this",
".",
"choicesList",
".",
"length",
";",
"i",
"<",
"length",
";",
"i",
"+=",
"1",
")",
"{",
"if",
"(",
"this",
".",
"choicesList",
... | Add an additional class to the currently selected inputEx-RadioField-choice | [
"Add",
"an",
"additional",
"class",
"to",
"the",
"currently",
"selected",
"inputEx",
"-",
"RadioField",
"-",
"choice"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5854-L5867 | |
42,697 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function () {
var i, length;
for (i = 0, length = this.choicesList.length ; i < length ; i += 1) {
if (this.choicesList[i].node.firstChild.checked) {
if (this.radioAny && this.radioAny == this.choicesList[i].node.firstChild) {
return this.anyField.getValue();
}
re... | javascript | function () {
var i, length;
for (i = 0, length = this.choicesList.length ; i < length ; i += 1) {
if (this.choicesList[i].node.firstChild.checked) {
if (this.radioAny && this.radioAny == this.choicesList[i].node.firstChild) {
return this.anyField.getValue();
}
re... | [
"function",
"(",
")",
"{",
"var",
"i",
",",
"length",
";",
"for",
"(",
"i",
"=",
"0",
",",
"length",
"=",
"this",
".",
"choicesList",
".",
"length",
";",
"i",
"<",
"length",
";",
"i",
"+=",
"1",
")",
"{",
"if",
"(",
"this",
".",
"choicesList",
... | Get the field value
@return {Any} | [
"Get",
"the",
"field",
"value"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5909-L5926 | |
42,698 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function (value, sendUpdatedEvt) {
var checkAny = true, valueFound = false, i, length;
for (i = 0, length = this.choicesList.length ; i < length ; i += 1) {
// valueFound is a useful when "real" choice has a value equal to allowAny choice default value
// so we check only the first value-matc... | javascript | function (value, sendUpdatedEvt) {
var checkAny = true, valueFound = false, i, length;
for (i = 0, length = this.choicesList.length ; i < length ; i += 1) {
// valueFound is a useful when "real" choice has a value equal to allowAny choice default value
// so we check only the first value-matc... | [
"function",
"(",
"value",
",",
"sendUpdatedEvt",
")",
"{",
"var",
"checkAny",
"=",
"true",
",",
"valueFound",
"=",
"false",
",",
"i",
",",
"length",
";",
"for",
"(",
"i",
"=",
"0",
",",
"length",
"=",
"this",
".",
"choicesList",
".",
"length",
";",
... | Set the value of the Radio
@param {Any} value The value schould be one of this.options.values (which defaults to this.options.choices if missing) if allowAny option not true.
@param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the ... | [
"Set",
"the",
"value",
"of",
"the",
"Radio"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5933-L5968 | |
42,699 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function (sendUpdatedEvt) {
if (this.radioAny){
this.anyField.setValue(this.options.allowAny.value, false);
}
inputEx.RadioField.superclass.clear.call(this, sendUpdatedEvt);
} | javascript | function (sendUpdatedEvt) {
if (this.radioAny){
this.anyField.setValue(this.options.allowAny.value, false);
}
inputEx.RadioField.superclass.clear.call(this, sendUpdatedEvt);
} | [
"function",
"(",
"sendUpdatedEvt",
")",
"{",
"if",
"(",
"this",
".",
"radioAny",
")",
"{",
"this",
".",
"anyField",
".",
"setValue",
"(",
"this",
".",
"options",
".",
"allowAny",
".",
"value",
",",
"false",
")",
";",
"}",
"inputEx",
".",
"RadioField",
... | Clear the field by setting the field value to this.options.value
@param {boolean} [sendUpdatedEvt] (optional) Wether this clear should fire the updatedEvt or not (default is true, pass false to NOT send the event) | [
"Clear",
"the",
"field",
"by",
"setting",
"the",
"field",
"value",
"to",
"this",
".",
"options",
".",
"value"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5974-L5981 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.