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 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (obj) {
var attr, carousel = this,
styles = getCarouselItemPosition.call(carousel, obj.pos);
return createElement(carousel.get("carouselItemEl"), {
className : obj.className,
styles : obj.styles,
content :... | javascript | function (obj) {
var attr, carousel = this,
styles = getCarouselItemPosition.call(carousel, obj.pos);
return createElement(carousel.get("carouselItemEl"), {
className : obj.className,
styles : obj.styles,
content :... | [
"function",
"(",
"obj",
")",
"{",
"var",
"attr",
",",
"carousel",
"=",
"this",
",",
"styles",
"=",
"getCarouselItemPosition",
".",
"call",
"(",
"carousel",
",",
"obj",
".",
"pos",
")",
";",
"return",
"createElement",
"(",
"carousel",
".",
"get",
"(",
"... | Create the Carousel item.
@method createCarouselItem
@param obj {Object} The attributes of the element to be created
@protected | [
"Create",
"the",
"Carousel",
"item",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2941-L2951 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (index) {
var carousel = this,
isCircular = carousel.get("isCircular"),
numItems = carousel.get("numItems"),
numVisible = carousel.get("numVisible"),
sentinel = numItems - 1;
if (index < 0) {
index = ... | javascript | function (index) {
var carousel = this,
isCircular = carousel.get("isCircular"),
numItems = carousel.get("numItems"),
numVisible = carousel.get("numVisible"),
sentinel = numItems - 1;
if (index < 0) {
index = ... | [
"function",
"(",
"index",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"isCircular",
"=",
"carousel",
".",
"get",
"(",
"\"isCircular\"",
")",
",",
"numItems",
"=",
"carousel",
".",
"get",
"(",
"\"numItems\"",
")",
",",
"numVisible",
"=",
"carousel",
".... | Return a valid item for a possibly out of bounds index considering
the isCircular property.
@method _getValidIndex
@param index {Number} The index of the item to be returned
@return {Object} Return a valid item index
@protected | [
"Return",
"a",
"valid",
"item",
"for",
"a",
"possibly",
"out",
"of",
"bounds",
"index",
"considering",
"the",
"isCircular",
"property",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2962-L2977 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (val) {
var carousel = this,
isCircular = carousel.get("isCircular"),
numItems = carousel.get("numItems"),
sentinel = numItems - 1;
if (val < 0) {
if (isCircular) {
val = numItems + val;
... | javascript | function (val) {
var carousel = this,
isCircular = carousel.get("isCircular"),
numItems = carousel.get("numItems"),
sentinel = numItems - 1;
if (val < 0) {
if (isCircular) {
val = numItems + val;
... | [
"function",
"(",
"val",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"isCircular",
"=",
"carousel",
".",
"get",
"(",
"\"isCircular\"",
")",
",",
"numItems",
"=",
"carousel",
".",
"get",
"(",
"\"numItems\"",
")",
",",
"sentinel",
"=",
"numItems",
"-",
... | Get the value for the selected item.
@method _getSelectedItem
@param val {Number} The new value for "selected" item
@return {Number} The new value that would be set
@protected | [
"Get",
"the",
"value",
"for",
"the",
"selected",
"item",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2987-L3007 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (ev) {
var carousel = this,
carouselItem = carousel.get("carouselItemEl"),
container = carousel.get("element"),
el,
item,
target = Event.getTarget(ev),
tag = target.tagName.toUpperC... | javascript | function (ev) {
var carousel = this,
carouselItem = carousel.get("carouselItemEl"),
container = carousel.get("element"),
el,
item,
target = Event.getTarget(ev),
tag = target.tagName.toUpperC... | [
"function",
"(",
"ev",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"carouselItem",
"=",
"carousel",
".",
"get",
"(",
"\"carouselItemEl\"",
")",
",",
"container",
"=",
"carousel",
".",
"get",
"(",
"\"element\"",
")",
",",
"el",
",",
"item",
",",
"tar... | The "click" handler for the item.
@method _itemClickHandler
@param {Event} ev The event object
@protected | [
"The",
"click",
"handler",
"for",
"the",
"item",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3016-L3045 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (ev) {
var carousel = this,
key = Event.getCharCode(ev),
target = Event.getTarget(ev),
prevent = false;
// do not mess while animation is in progress or naving via select
if (carousel.isAnimating() || target.tagName.to... | javascript | function (ev) {
var carousel = this,
key = Event.getCharCode(ev),
target = Event.getTarget(ev),
prevent = false;
// do not mess while animation is in progress or naving via select
if (carousel.isAnimating() || target.tagName.to... | [
"function",
"(",
"ev",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"key",
"=",
"Event",
".",
"getCharCode",
"(",
"ev",
")",
",",
"target",
"=",
"Event",
".",
"getTarget",
"(",
"ev",
")",
",",
"prevent",
"=",
"false",
";",
"// do not mess while anima... | The keyboard event handler for Carousel.
@method _keyboardEventHandler
@param ev {Event} The event that is being handled.
@protected | [
"The",
"keyboard",
"event",
"handler",
"for",
"Carousel",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3054-L3092 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function(last) {
var carousel = this,
numItems = carousel.get("numItems"),
numVisible = carousel.get("numVisible"),
reveal = carousel.get("revealAmount"),
first = carousel._itemsTable.items.length,
lastVisible ... | javascript | function(last) {
var carousel = this,
numItems = carousel.get("numItems"),
numVisible = carousel.get("numVisible"),
reveal = carousel.get("revealAmount"),
first = carousel._itemsTable.items.length,
lastVisible ... | [
"function",
"(",
"last",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"numItems",
"=",
"carousel",
".",
"get",
"(",
"\"numItems\"",
")",
",",
"numVisible",
"=",
"carousel",
".",
"get",
"(",
"\"numVisible\"",
")",
",",
"reveal",
"=",
"carousel",
".",
... | The load the required set of items that are needed for display.
@method _loadItems
@protected | [
"The",
"load",
"the",
"required",
"set",
"of",
"items",
"that",
"are",
"needed",
"for",
"display",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3100-L3123 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (ev) {
var carousel = this,
target = Event.getTarget(ev),
page = target.value,
item;
if (page) {
item = carousel.getFirstVisibleOnPage(page);
carousel._selectedItem = item;
carousel.sc... | javascript | function (ev) {
var carousel = this,
target = Event.getTarget(ev),
page = target.value,
item;
if (page) {
item = carousel.getFirstVisibleOnPage(page);
carousel._selectedItem = item;
carousel.sc... | [
"function",
"(",
"ev",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"target",
"=",
"Event",
".",
"getTarget",
"(",
"ev",
")",
",",
"page",
"=",
"target",
".",
"value",
",",
"item",
";",
"if",
"(",
"page",
")",
"{",
"item",
"=",
"carousel",
".",... | The "onchange" handler for select box pagination.
@method _pagerChangeHandler
@param {Event} ev The event object
@protected | [
"The",
"onchange",
"handler",
"for",
"select",
"box",
"pagination",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3132-L3144 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (ev) {
var carousel = this,
css = carousel.CLASSES,
target = Event.getTarget(ev),
elNode = target.nodeName.toUpperCase(),
val,
stringIndex,
page,
item;
if (Dom.hasCl... | javascript | function (ev) {
var carousel = this,
css = carousel.CLASSES,
target = Event.getTarget(ev),
elNode = target.nodeName.toUpperCase(),
val,
stringIndex,
page,
item;
if (Dom.hasCl... | [
"function",
"(",
"ev",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"css",
"=",
"carousel",
".",
"CLASSES",
",",
"target",
"=",
"Event",
".",
"getTarget",
"(",
"ev",
")",
",",
"elNode",
"=",
"target",
".",
"nodeName",
".",
"toUpperCase",
"(",
")",
... | The "click" handler for anchor pagination.
@method _pagerClickHandler
@param {Event} ev The event object
@protected | [
"The",
"click",
"handler",
"for",
"anchor",
"pagination",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3152-L3177 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (parent) {
var carousel = this, child, cssClass, domEl, found, node;
cssClass = carousel.CLASSES;
domEl = carousel.get("carouselEl");
found = false;
for (child = parent.firstChild; child; child = child.nextSibling) {
if (chi... | javascript | function (parent) {
var carousel = this, child, cssClass, domEl, found, node;
cssClass = carousel.CLASSES;
domEl = carousel.get("carouselEl");
found = false;
for (child = parent.firstChild; child; child = child.nextSibling) {
if (chi... | [
"function",
"(",
"parent",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"child",
",",
"cssClass",
",",
"domEl",
",",
"found",
",",
"node",
";",
"cssClass",
"=",
"carousel",
".",
"CLASSES",
";",
"domEl",
"=",
"carousel",
".",
"get",
"(",
"\"carouselEl... | Find the Carousel within a container. The Carousel is identified by
the first element that matches the carousel element tag or the
element that has the Carousel class.
@method parseCarousel
@param parent {HTMLElement} The parent element to look under
@return {Boolean} True if Carousel is found, false otherwise
@protec... | [
"Find",
"the",
"Carousel",
"within",
"a",
"container",
".",
"The",
"Carousel",
"is",
"identified",
"by",
"the",
"first",
"element",
"that",
"matches",
"the",
"carousel",
"element",
"tag",
"or",
"the",
"element",
"that",
"has",
"the",
"Carousel",
"class",
"."... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3189-L3212 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function () {
var carousel = this,
cssClass = carousel.CLASSES,
i=0,
rows,
child,
domItemEl,
elId,
node,
index = carousel.get("firstVisible"),
parent = carousel._... | javascript | function () {
var carousel = this,
cssClass = carousel.CLASSES,
i=0,
rows,
child,
domItemEl,
elId,
node,
index = carousel.get("firstVisible"),
parent = carousel._... | [
"function",
"(",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"cssClass",
"=",
"carousel",
".",
"CLASSES",
",",
"i",
"=",
"0",
",",
"rows",
",",
"child",
",",
"domItemEl",
",",
"elId",
",",
"node",
",",
"index",
"=",
"carousel",
".",
"get",
"(",
... | Find the items within the Carousel and add them to the items table.
A Carousel item is identified by elements that matches the carousel
item element tag.
@method parseCarouselItems
@protected | [
"Find",
"the",
"items",
"within",
"the",
"Carousel",
"and",
"add",
"them",
"to",
"the",
"items",
"table",
".",
"A",
"Carousel",
"item",
"is",
"identified",
"by",
"elements",
"that",
"matches",
"the",
"carousel",
"item",
"element",
"tag",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3222-L3252 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (parent) {
var carousel = this,
cfg,
cssClass = carousel.CLASSES,
el,
i,
j,
nav,
rv = false;
nav = Dom.getElementsByClassName(cssClass.PREV_PAGE, "*", parent);
... | javascript | function (parent) {
var carousel = this,
cfg,
cssClass = carousel.CLASSES,
el,
i,
j,
nav,
rv = false;
nav = Dom.getElementsByClassName(cssClass.PREV_PAGE, "*", parent);
... | [
"function",
"(",
"parent",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"cfg",
",",
"cssClass",
"=",
"carousel",
".",
"CLASSES",
",",
"el",
",",
"i",
",",
"j",
",",
"nav",
",",
"rv",
"=",
"false",
";",
"nav",
"=",
"Dom",
".",
"getElementsByClassN... | Find the Carousel navigation within a container. The navigation
elements need to match the carousel navigation class names.
@method parseCarouselNavigation
@param parent {HTMLElement} The parent element to look under
@return {Boolean} True if at least one is found, false otherwise
@protected | [
"Find",
"the",
"Carousel",
"navigation",
"within",
"a",
"container",
".",
"The",
"navigation",
"elements",
"need",
"to",
"match",
"the",
"carousel",
"navigation",
"class",
"names",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3263-L3339 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function () {
var carousel = this, i, isVertical = carousel.get("isVertical"), firstVisible = carousel.get("firstVisible"), item, n, rsz, sz;
if (carousel._itemsTable.numItems < 1) {
return;
}
sz = getCarouselItemSize.call(carousel,
... | javascript | function () {
var carousel = this, i, isVertical = carousel.get("isVertical"), firstVisible = carousel.get("firstVisible"), item, n, rsz, sz;
if (carousel._itemsTable.numItems < 1) {
return;
}
sz = getCarouselItemSize.call(carousel,
... | [
"function",
"(",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"i",
",",
"isVertical",
"=",
"carousel",
".",
"get",
"(",
"\"isVertical\"",
")",
",",
"firstVisible",
"=",
"carousel",
".",
"get",
"(",
"\"firstVisible\"",
")",
",",
"item",
",",
"n",
",",... | Refresh the widget UI if it is not already rendered, on first item
addition.
@method _refreshUi
@protected | [
"Refresh",
"the",
"widget",
"UI",
"if",
"it",
"is",
"not",
"already",
"rendered",
"on",
"first",
"item",
"addition",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3348-L3370 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (offset) {
var carousel = this, which;
which = carousel.get("isVertical") ? "top" : "left";
Dom.setStyle(carousel._carouselEl, which, offset + "px");
} | javascript | function (offset) {
var carousel = this, which;
which = carousel.get("isVertical") ? "top" : "left";
Dom.setStyle(carousel._carouselEl, which, offset + "px");
} | [
"function",
"(",
"offset",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"which",
";",
"which",
"=",
"carousel",
".",
"get",
"(",
"\"isVertical\"",
")",
"?",
"\"top\"",
":",
"\"left\"",
";",
"Dom",
".",
"setStyle",
"(",
"carousel",
".",
"_carouselEl",
... | Set the Carousel offset to the passed offset.
@method _setCarouselOffset
@protected | [
"Set",
"the",
"Carousel",
"offset",
"to",
"the",
"passed",
"offset",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3378-L3383 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (clip, attr) {
var carousel = this,
config = carousel.CONFIG,
cssClass = carousel.CLASSES,
isVertical,
rows,
cols,
size;
isVertical = carousel.get("isVertical");
rows = c... | javascript | function (clip, attr) {
var carousel = this,
config = carousel.CONFIG,
cssClass = carousel.CLASSES,
isVertical,
rows,
cols,
size;
isVertical = carousel.get("isVertical");
rows = c... | [
"function",
"(",
"clip",
",",
"attr",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"config",
"=",
"carousel",
".",
"CONFIG",
",",
"cssClass",
"=",
"carousel",
".",
"CLASSES",
",",
"isVertical",
",",
"rows",
",",
"cols",
",",
"size",
";",
"isVertical"... | Set the container size.
@method _setContainerSize
@param clip {HTMLElement} The clip container element.
@param attr {String} Either set the height or width.
@protected | [
"Set",
"the",
"container",
"size",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3556-L3609 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (val) {
var carousel = this;
if (val >= 0 && val < carousel.get("numItems")) {
carousel.scrollTo(val);
} else {
val = carousel.get("firstVisible");
}
return val;
} | javascript | function (val) {
var carousel = this;
if (val >= 0 && val < carousel.get("numItems")) {
carousel.scrollTo(val);
} else {
val = carousel.get("firstVisible");
}
return val;
} | [
"function",
"(",
"val",
")",
"{",
"var",
"carousel",
"=",
"this",
";",
"if",
"(",
"val",
">=",
"0",
"&&",
"val",
"<",
"carousel",
".",
"get",
"(",
"\"numItems\"",
")",
")",
"{",
"carousel",
".",
"scrollTo",
"(",
"val",
")",
";",
"}",
"else",
"{",... | Set the value for the Carousel's first visible item.
@method _setFirstVisible
@param val {Number} The new value for firstVisible
@return {Number} The new value that would be set
@protected | [
"Set",
"the",
"value",
"for",
"the",
"Carousel",
"s",
"first",
"visible",
"item",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3619-L3628 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (cfg) {
var carousel = this;
if (cfg.prev) {
Event.on(cfg.prev, "click", scrollPageBackward, carousel);
}
if (cfg.next) {
Event.on(cfg.next, "click", scrollPageForward, carousel);
}
} | javascript | function (cfg) {
var carousel = this;
if (cfg.prev) {
Event.on(cfg.prev, "click", scrollPageBackward, carousel);
}
if (cfg.next) {
Event.on(cfg.next, "click", scrollPageForward, carousel);
}
} | [
"function",
"(",
"cfg",
")",
"{",
"var",
"carousel",
"=",
"this",
";",
"if",
"(",
"cfg",
".",
"prev",
")",
"{",
"Event",
".",
"on",
"(",
"cfg",
".",
"prev",
",",
"\"click\"",
",",
"scrollPageBackward",
",",
"carousel",
")",
";",
"}",
"if",
"(",
"... | Set the value for the Carousel's navigation.
@method _setNavigation
@param cfg {Object} The navigation configuration
@return {Object} The new value that would be set
@protected | [
"Set",
"the",
"value",
"for",
"the",
"Carousel",
"s",
"navigation",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3638-L3647 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (val) {
var carousel = this,
numVisible = val;
if(JS.isArray(val)) {
carousel._cols = val[0];
carousel._rows = val[1];
numVisible = val[0] * val[1];
}
return numVisible;
} | javascript | function (val) {
var carousel = this,
numVisible = val;
if(JS.isArray(val)) {
carousel._cols = val[0];
carousel._rows = val[1];
numVisible = val[0] * val[1];
}
return numVisible;
} | [
"function",
"(",
"val",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"numVisible",
"=",
"val",
";",
"if",
"(",
"JS",
".",
"isArray",
"(",
"val",
")",
")",
"{",
"carousel",
".",
"_cols",
"=",
"val",
"[",
"0",
"]",
";",
"carousel",
".",
"_rows",
... | Set the value for the number of visible items in the Carousel.
@method _numVisibleSetter
@param val {Number} The new value for numVisible
@return {Number} The new value that would be set
@protected | [
"Set",
"the",
"value",
"for",
"the",
"number",
"of",
"visible",
"items",
"in",
"the",
"Carousel",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3671-L3681 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (val) {
var carousel = this,
cssClass = carousel.CLASSES;
if (val) {
carousel.replaceClass(cssClass.HORIZONTAL, cssClass.VERTICAL);
} else {
carousel.replaceClass(cssClass.VERTICAL, cssClass.HORIZONTAL);
}
... | javascript | function (val) {
var carousel = this,
cssClass = carousel.CLASSES;
if (val) {
carousel.replaceClass(cssClass.HORIZONTAL, cssClass.VERTICAL);
} else {
carousel.replaceClass(cssClass.VERTICAL, cssClass.HORIZONTAL);
}
... | [
"function",
"(",
"val",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"cssClass",
"=",
"carousel",
".",
"CLASSES",
";",
"if",
"(",
"val",
")",
"{",
"carousel",
".",
"replaceClass",
"(",
"cssClass",
".",
"HORIZONTAL",
",",
"cssClass",
".",
"VERTICAL",
... | Set the orientation of the Carousel.
@method _setOrientation
@param val {Boolean} The new value for isVertical
@return {Boolean} The new value that would be set
@protected | [
"Set",
"the",
"orientation",
"of",
"the",
"Carousel",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3735-L3747 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (val) {
var carousel = this;
if (val >= 0 && val <= 100) {
val = parseInt(val, 10);
val = JS.isNumber(val) ? val : 0;
carousel._setClipContainerSize();
} else {
val = carousel.get("revealAmount");
}... | javascript | function (val) {
var carousel = this;
if (val >= 0 && val <= 100) {
val = parseInt(val, 10);
val = JS.isNumber(val) ? val : 0;
carousel._setClipContainerSize();
} else {
val = carousel.get("revealAmount");
}... | [
"function",
"(",
"val",
")",
"{",
"var",
"carousel",
"=",
"this",
";",
"if",
"(",
"val",
">=",
"0",
"&&",
"val",
"<=",
"100",
")",
"{",
"val",
"=",
"parseInt",
"(",
"val",
",",
"10",
")",
";",
"val",
"=",
"JS",
".",
"isNumber",
"(",
"val",
")... | Set the value for the reveal amount percentage in the Carousel.
@method _setRevealAmount
@param val {Number} The new value for revealAmount
@return {Number} The new value that would be set
@protected | [
"Set",
"the",
"value",
"for",
"the",
"reveal",
"amount",
"percentage",
"in",
"the",
"Carousel",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3757-L3768 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function () {
var carousel = this;
return carousel.get("currentPage") + 1 == carousel.get("numPages") ?
carousel.get("numItems") - 1:
carousel.get("firstVisible") + carousel.get("numVisible") - 1;
} | javascript | function () {
var carousel = this;
return carousel.get("currentPage") + 1 == carousel.get("numPages") ?
carousel.get("numItems") - 1:
carousel.get("firstVisible") + carousel.get("numVisible") - 1;
} | [
"function",
"(",
")",
"{",
"var",
"carousel",
"=",
"this",
";",
"return",
"carousel",
".",
"get",
"(",
"\"currentPage\"",
")",
"+",
"1",
"==",
"carousel",
".",
"get",
"(",
"\"numPages\"",
")",
"?",
"carousel",
".",
"get",
"(",
"\"numItems\"",
")",
"-",... | Get the index of the last visible item
@method _getLastVisible
@protected | [
"Get",
"the",
"index",
"of",
"the",
"last",
"visible",
"item"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3799-L3804 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (obj) {
var attr,
carousel = this,
carouselEl = carousel._carouselEl,
el,
item,
itemsTable = carousel._itemsTable,
oel,
pos,
sibling,
styles;
... | javascript | function (obj) {
var attr,
carousel = this,
carouselEl = carousel._carouselEl,
el,
item,
itemsTable = carousel._itemsTable,
oel,
pos,
sibling,
styles;
... | [
"function",
"(",
"obj",
")",
"{",
"var",
"attr",
",",
"carousel",
"=",
"this",
",",
"carouselEl",
"=",
"carousel",
".",
"_carouselEl",
",",
"el",
",",
"item",
",",
"itemsTable",
"=",
"carousel",
".",
"_itemsTable",
",",
"oel",
",",
"pos",
",",
"sibling... | Synchronize and redraw the UI after an item is added.
@method _syncUiForItemAdd
@protected | [
"Synchronize",
"and",
"redraw",
"the",
"UI",
"after",
"an",
"item",
"is",
"added",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3812-L3883 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (o) {
var carousel = this,
carouselEl = carousel._carouselEl,
itemsTable = carousel._itemsTable,
pos = o.pos,
item = o.newItem,
oel = o.oldItem,
el;
el = carousel._crea... | javascript | function (o) {
var carousel = this,
carouselEl = carousel._carouselEl,
itemsTable = carousel._itemsTable,
pos = o.pos,
item = o.newItem,
oel = o.oldItem,
el;
el = carousel._crea... | [
"function",
"(",
"o",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"carouselEl",
"=",
"carousel",
".",
"_carouselEl",
",",
"itemsTable",
"=",
"carousel",
".",
"_itemsTable",
",",
"pos",
"=",
"o",
".",
"pos",
",",
"item",
"=",
"o",
".",
"newItem",
"... | Synchronize and redraw the UI after an item is replaced.
@method _syncUiForItemReplace
@protected | [
"Synchronize",
"and",
"redraw",
"the",
"UI",
"after",
"an",
"item",
"is",
"replaced",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3891-L3923 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (obj) {
var carousel = this,
carouselEl = carousel._carouselEl,
el, item, num, pos;
num = carousel.get("numItems");
item = obj.item;
pos = obj.pos;
if (item && (el = Dom.get(item.id))) {
if (el && ... | javascript | function (obj) {
var carousel = this,
carouselEl = carousel._carouselEl,
el, item, num, pos;
num = carousel.get("numItems");
item = obj.item;
pos = obj.pos;
if (item && (el = Dom.get(item.id))) {
if (el && ... | [
"function",
"(",
"obj",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"carouselEl",
"=",
"carousel",
".",
"_carouselEl",
",",
"el",
",",
"item",
",",
"num",
",",
"pos",
";",
"num",
"=",
"carousel",
".",
"get",
"(",
"\"numItems\"",
")",
";",
"item",
... | Synchronize and redraw the UI after an item is removed.
@method _syncUiForItemAdd
@protected | [
"Synchronize",
"and",
"redraw",
"the",
"UI",
"after",
"an",
"item",
"is",
"removed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3931-L3954 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (obj) {
var carousel = this,
carouselEl = carousel._carouselEl,
itemsTable = carousel._itemsTable,
len = itemsTable.items.length,
sibling = itemsTable.items[obj.last + 1],
el,
j;
// attemp... | javascript | function (obj) {
var carousel = this,
carouselEl = carousel._carouselEl,
itemsTable = carousel._itemsTable,
len = itemsTable.items.length,
sibling = itemsTable.items[obj.last + 1],
el,
j;
// attemp... | [
"function",
"(",
"obj",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"carouselEl",
"=",
"carousel",
".",
"_carouselEl",
",",
"itemsTable",
"=",
"carousel",
".",
"_itemsTable",
",",
"len",
"=",
"itemsTable",
".",
"items",
".",
"length",
",",
"sibling",
... | Synchronize and redraw the UI for lazy loading.
@method _syncUiForLazyLoading
@protected | [
"Synchronize",
"and",
"redraw",
"the",
"UI",
"for",
"lazy",
"loading",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3962-L4006 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function () {
var attr,
carousel = this,
numItems = carousel.get("numItems"),
i,
itemsTable = carousel._itemsTable,
items = itemsTable.items,
loading = itemsTable.loading,
item,
st... | javascript | function () {
var attr,
carousel = this,
numItems = carousel.get("numItems"),
i,
itemsTable = carousel._itemsTable,
items = itemsTable.items,
loading = itemsTable.loading,
item,
st... | [
"function",
"(",
")",
"{",
"var",
"attr",
",",
"carousel",
"=",
"this",
",",
"numItems",
"=",
"carousel",
".",
"get",
"(",
"\"numItems\"",
")",
",",
"i",
",",
"itemsTable",
"=",
"carousel",
".",
"_itemsTable",
",",
"items",
"=",
"itemsTable",
".",
"ite... | Redraw the UI for item positioning.
@method _syncUiItems
@protected | [
"Redraw",
"the",
"UI",
"for",
"item",
"positioning",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4014-L4039 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (el, setFocus) {
var children,
cssClass = this.CLASSES,
grandParent,
parent = el.parentNode;
if (!parent) {
return;
}
grandParent = parent.parentNode;
if (el.nodeName.toUpperCase() ==... | javascript | function (el, setFocus) {
var children,
cssClass = this.CLASSES,
grandParent,
parent = el.parentNode;
if (!parent) {
return;
}
grandParent = parent.parentNode;
if (el.nodeName.toUpperCase() ==... | [
"function",
"(",
"el",
",",
"setFocus",
")",
"{",
"var",
"children",
",",
"cssClass",
"=",
"this",
".",
"CLASSES",
",",
"grandParent",
",",
"parent",
"=",
"el",
".",
"parentNode",
";",
"if",
"(",
"!",
"parent",
")",
"{",
"return",
";",
"}",
"grandPar... | Set the correct class for the navigation buttons.
@method _updateNavButtons
@param el {Object} The target button
@param setFocus {Boolean} True to set focus ring, false otherwise.
@protected | [
"Set",
"the",
"correct",
"class",
"for",
"the",
"navigation",
"buttons",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4049-L4074 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function () {
var carousel = this,
css = carousel.CLASSES,
cur = carousel._pages.cur, // current page
el,
html,
i,
item,
n = carousel.get("numVisible"),
n... | javascript | function () {
var carousel = this,
css = carousel.CLASSES,
cur = carousel._pages.cur, // current page
el,
html,
i,
item,
n = carousel.get("numVisible"),
n... | [
"function",
"(",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"css",
"=",
"carousel",
".",
"CLASSES",
",",
"cur",
"=",
"carousel",
".",
"_pages",
".",
"cur",
",",
"// current page",
"el",
",",
"html",
",",
"i",
",",
"item",
",",
"n",
"=",
"carous... | Update the UI for the pager buttons based on the current page and
the number of pages.
@method _updatePagerButtons
@protected | [
"Update",
"the",
"UI",
"for",
"the",
"pager",
"buttons",
"based",
"on",
"the",
"current",
"page",
"and",
"the",
"number",
"of",
"pages",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4083-L4128 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function () {
var carousel = this,
css = carousel.CLASSES,
cur = carousel._pages.cur, // current page
el,
i,
item,
n = carousel.get("numVisible"),
num = carousel._pages.num, ... | javascript | function () {
var carousel = this,
css = carousel.CLASSES,
cur = carousel._pages.cur, // current page
el,
i,
item,
n = carousel.get("numVisible"),
num = carousel._pages.num, ... | [
"function",
"(",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"css",
"=",
"carousel",
".",
"CLASSES",
",",
"cur",
"=",
"carousel",
".",
"_pages",
".",
"cur",
",",
"// current page",
"el",
",",
"i",
",",
"item",
",",
"n",
"=",
"carousel",
".",
"ge... | Update the UI for the pager menu based on the current page and
the number of pages. If the number of pages is greater than
MAX_PAGER_BUTTONS, then the selection of pages is provided by a drop
down menu instead of a set of buttons.
@method _updatePagerMenu
@protected | [
"Update",
"the",
"UI",
"for",
"the",
"pager",
"menu",
"based",
"on",
"the",
"current",
"page",
"and",
"the",
"number",
"of",
"pages",
".",
"If",
"the",
"number",
"of",
"pages",
"is",
"greater",
"than",
"MAX_PAGER_BUTTONS",
"then",
"the",
"selection",
"of",... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4139-L4197 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (el) {
var carousel = this;
if (el) {
if (carousel._focusableItemEl) {
carousel._focusableItemEl.tabIndex = -1;
}
carousel._focusableItemEl = el;
el.tabIndex = 0;
}
} | javascript | function (el) {
var carousel = this;
if (el) {
if (carousel._focusableItemEl) {
carousel._focusableItemEl.tabIndex = -1;
}
carousel._focusableItemEl = el;
el.tabIndex = 0;
}
} | [
"function",
"(",
"el",
")",
"{",
"var",
"carousel",
"=",
"this",
";",
"if",
"(",
"el",
")",
"{",
"if",
"(",
"carousel",
".",
"_focusableItemEl",
")",
"{",
"carousel",
".",
"_focusableItemEl",
".",
"tabIndex",
"=",
"-",
"1",
";",
"}",
"carousel",
".",... | Set the correct tab index for the Carousel items.
@method _updateTabIndex
@param el {Object} The element to be focussed
@protected | [
"Set",
"the",
"correct",
"tab",
"index",
"for",
"the",
"Carousel",
"items",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4206-L4216 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (cfg) {
var rv = true;
if (JS.isObject(cfg)) {
if (cfg.speed) {
rv = rv && JS.isNumber(cfg.speed);
}
if (cfg.effect) {
rv = rv && JS.isFunction(cfg.effect);
} else if (!JS.isUndefine... | javascript | function (cfg) {
var rv = true;
if (JS.isObject(cfg)) {
if (cfg.speed) {
rv = rv && JS.isNumber(cfg.speed);
}
if (cfg.effect) {
rv = rv && JS.isFunction(cfg.effect);
} else if (!JS.isUndefine... | [
"function",
"(",
"cfg",
")",
"{",
"var",
"rv",
"=",
"true",
";",
"if",
"(",
"JS",
".",
"isObject",
"(",
"cfg",
")",
")",
"{",
"if",
"(",
"cfg",
".",
"speed",
")",
"{",
"rv",
"=",
"rv",
"&&",
"JS",
".",
"isNumber",
"(",
"cfg",
".",
"speed",
... | Validate animation parameters.
@method _validateAnimation
@param cfg {Object} The animation configuration
@return {Boolean} The status of the validation
@protected | [
"Validate",
"animation",
"parameters",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4226-L4243 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (val) {
var carousel = this, numItems = carousel.get("numItems");
if (JS.isNumber(val)) {
if (numItems === 0 && val == numItems) {
return true;
} else {
return (val >= 0 && val < numItems);
}
... | javascript | function (val) {
var carousel = this, numItems = carousel.get("numItems");
if (JS.isNumber(val)) {
if (numItems === 0 && val == numItems) {
return true;
} else {
return (val >= 0 && val < numItems);
}
... | [
"function",
"(",
"val",
")",
"{",
"var",
"carousel",
"=",
"this",
",",
"numItems",
"=",
"carousel",
".",
"get",
"(",
"\"numItems\"",
")",
";",
"if",
"(",
"JS",
".",
"isNumber",
"(",
"val",
")",
")",
"{",
"if",
"(",
"numItems",
"===",
"0",
"&&",
"... | Validate the firstVisible value.
@method _validateFirstVisible
@param val {Number} The first visible value
@return {Boolean} The status of the validation
@protected | [
"Validate",
"the",
"firstVisible",
"value",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4253-L4265 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (cfg) {
var i;
if (!JS.isObject(cfg)) {
return false;
}
if (cfg.prev) {
if (!JS.isArray(cfg.prev)) {
return false;
}
for (i in cfg.prev) {
if (cfg.prev.hasOw... | javascript | function (cfg) {
var i;
if (!JS.isObject(cfg)) {
return false;
}
if (cfg.prev) {
if (!JS.isArray(cfg.prev)) {
return false;
}
for (i in cfg.prev) {
if (cfg.prev.hasOw... | [
"function",
"(",
"cfg",
")",
"{",
"var",
"i",
";",
"if",
"(",
"!",
"JS",
".",
"isObject",
"(",
"cfg",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"cfg",
".",
"prev",
")",
"{",
"if",
"(",
"!",
"JS",
".",
"isArray",
"(",
"cfg",
"."... | Validate and navigation parameters.
@method _validateNavigation
@param cfg {Object} The navigation configuration
@return {Boolean} The status of the validation
@protected | [
"Validate",
"and",
"navigation",
"parameters",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4275-L4309 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (val) {
var rv = false;
if (JS.isNumber(val)) {
rv = val > 0 && val <= this.get("numItems");
} else if (JS.isArray(val)) {
if (JS.isNumber(val[0]) && JS.isNumber(val[1])) {
rv = val[0] * val[1] > 0 && val.length == 2;
... | javascript | function (val) {
var rv = false;
if (JS.isNumber(val)) {
rv = val > 0 && val <= this.get("numItems");
} else if (JS.isArray(val)) {
if (JS.isNumber(val[0]) && JS.isNumber(val[1])) {
rv = val[0] * val[1] > 0 && val.length == 2;
... | [
"function",
"(",
"val",
")",
"{",
"var",
"rv",
"=",
"false",
";",
"if",
"(",
"JS",
".",
"isNumber",
"(",
"val",
")",
")",
"{",
"rv",
"=",
"val",
">",
"0",
"&&",
"val",
"<=",
"this",
".",
"get",
"(",
"\"numItems\"",
")",
";",
"}",
"else",
"if"... | Validate the numVisible value.
@method _validateNumVisible
@param val {Number} The numVisible value
@return {Boolean} The status of the validation
@protected | [
"Validate",
"the",
"numVisible",
"value",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4331-L4343 | train | |
neyric/webhookit | public/javascripts/yui/carousel/carousel-debug.js | function (val) {
var rv = false;
if (JS.isNumber(val)) {
rv = val >= 0 && val < 100;
}
return rv;
} | javascript | function (val) {
var rv = false;
if (JS.isNumber(val)) {
rv = val >= 0 && val < 100;
}
return rv;
} | [
"function",
"(",
"val",
")",
"{",
"var",
"rv",
"=",
"false",
";",
"if",
"(",
"JS",
".",
"isNumber",
"(",
"val",
")",
")",
"{",
"rv",
"=",
"val",
">=",
"0",
"&&",
"val",
"<",
"100",
";",
"}",
"return",
"rv",
";",
"}"
] | Validate the revealAmount value.
@method _validateRevealAmount
@param val {Number} The revealAmount value
@return {Boolean} The status of the validation
@protected | [
"Validate",
"the",
"revealAmount",
"value",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4353-L4361 | train | |
neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker-debug.js | function() {
var size = this.get(this.OPT.PICKER_SIZE),
h = this.get(this.OPT.HUE);
h = size - Math.round(h / 360 * size);
// 0 is at the top and bottom of the hue slider. Always go to
// the top so we don't end up sending the thumb to the b... | javascript | function() {
var size = this.get(this.OPT.PICKER_SIZE),
h = this.get(this.OPT.HUE);
h = size - Math.round(h / 360 * size);
// 0 is at the top and bottom of the hue slider. Always go to
// the top so we don't end up sending the thumb to the b... | [
"function",
"(",
")",
"{",
"var",
"size",
"=",
"this",
".",
"get",
"(",
"this",
".",
"OPT",
".",
"PICKER_SIZE",
")",
",",
"h",
"=",
"this",
".",
"get",
"(",
"this",
".",
"OPT",
".",
"HUE",
")",
";",
"h",
"=",
"size",
"-",
"Math",
".",
"round"... | Moves the hue slider into the position dictated by the current state
of the control
@method _updateHueSlider
@protected | [
"Moves",
"the",
"hue",
"slider",
"into",
"the",
"position",
"dictated",
"by",
"the",
"current",
"state",
"of",
"the",
"control"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L564-L580 | train | |
neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker-debug.js | function() {
var size = this.get(this.OPT.PICKER_SIZE),
s = this.get(this.OPT.SATURATION),
v = this.get(this.OPT.VALUE);
s = Math.round(s * size / 100);
v = Math.round(size - (v * size / 100));
this.logger.log("Setting picker slider to " ... | javascript | function() {
var size = this.get(this.OPT.PICKER_SIZE),
s = this.get(this.OPT.SATURATION),
v = this.get(this.OPT.VALUE);
s = Math.round(s * size / 100);
v = Math.round(size - (v * size / 100));
this.logger.log("Setting picker slider to " ... | [
"function",
"(",
")",
"{",
"var",
"size",
"=",
"this",
".",
"get",
"(",
"this",
".",
"OPT",
".",
"PICKER_SIZE",
")",
",",
"s",
"=",
"this",
".",
"get",
"(",
"this",
".",
"OPT",
".",
"SATURATION",
")",
",",
"v",
"=",
"this",
".",
"get",
"(",
"... | Moves the picker slider into the position dictated by the current state
of the control
@method _updatePickerSlider
@protected | [
"Moves",
"the",
"picker",
"slider",
"into",
"the",
"position",
"dictated",
"by",
"the",
"current",
"state",
"of",
"the",
"control"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L588-L599 | train | |
neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker-debug.js | function() {
this.logger.log("hsv " + [this._getH(),this._getS(),this._getV()]);
this.set(this.OPT.RGB, Color.hsv2rgb(this._getH(), this._getS(), this._getV()));
} | javascript | function() {
this.logger.log("hsv " + [this._getH(),this._getS(),this._getV()]);
this.set(this.OPT.RGB, Color.hsv2rgb(this._getH(), this._getS(), this._getV()));
} | [
"function",
"(",
")",
"{",
"this",
".",
"logger",
".",
"log",
"(",
"\"hsv \"",
"+",
"[",
"this",
".",
"_getH",
"(",
")",
",",
"this",
".",
"_getS",
"(",
")",
",",
"this",
".",
"_getV",
"(",
")",
"]",
")",
";",
"this",
".",
"set",
"(",
"this",... | Reads the sliders and converts the values to RGB, updating the
internal state for all the individual form fields
@method _getValuesFromSliders
@protected | [
"Reads",
"the",
"sliders",
"and",
"converts",
"the",
"values",
"to",
"RGB",
"updating",
"the",
"internal",
"state",
"for",
"all",
"the",
"individual",
"form",
"fields"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L709-L712 | train | |
neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker-debug.js | function(newOffset) {
this.logger.log("hue update: " + newOffset , "warn");
var h = this._getH(),
rgb = Color.hsv2rgb(h, 1, 1),
styleDef = "rgb(" + rgb.join(",") + ")";
this.set(this.OPT.HUE, h, true);
// set picker backgroun... | javascript | function(newOffset) {
this.logger.log("hue update: " + newOffset , "warn");
var h = this._getH(),
rgb = Color.hsv2rgb(h, 1, 1),
styleDef = "rgb(" + rgb.join(",") + ")";
this.set(this.OPT.HUE, h, true);
// set picker backgroun... | [
"function",
"(",
"newOffset",
")",
"{",
"this",
".",
"logger",
".",
"log",
"(",
"\"hue update: \"",
"+",
"newOffset",
",",
"\"warn\"",
")",
";",
"var",
"h",
"=",
"this",
".",
"_getH",
"(",
")",
",",
"rgb",
"=",
"Color",
".",
"hsv2rgb",
"(",
"h",
",... | Event handler for the hue slider.
@method _onHueSliderChange
@param newOffset {int} pixels from the start position
@protected | [
"Event",
"handler",
"for",
"the",
"hue",
"slider",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L739-L757 | train | |
neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker-debug.js | function () {
// bind all of our elements
var o=this.OPT,
ids = this.get(o.IDS),
els = this.get(o.ELEMENTS),
i, el, id;
// Add the default value as a key for each element for easier lookup
for (i in this.ID) {
... | javascript | function () {
// bind all of our elements
var o=this.OPT,
ids = this.get(o.IDS),
els = this.get(o.ELEMENTS),
i, el, id;
// Add the default value as a key for each element for easier lookup
for (i in this.ID) {
... | [
"function",
"(",
")",
"{",
"// bind all of our elements",
"var",
"o",
"=",
"this",
".",
"OPT",
",",
"ids",
"=",
"this",
".",
"get",
"(",
"o",
".",
"IDS",
")",
",",
"els",
"=",
"this",
".",
"get",
"(",
"o",
".",
"ELEMENTS",
")",
",",
"i",
",",
"... | Creates any missing DOM structure.
@method _initElements
@protected | [
"Creates",
"any",
"missing",
"DOM",
"structure",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L1234-L1274 | train | |
neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker-debug.js | function() {
var hsv = [this.get(this.OPT.HUE),
this.get(this.OPT.SATURATION)/100,
this.get(this.OPT.VALUE)/100],
rgb = Color.hsv2rgb(hsv);
this.logger.log("HSV converted to RGB " + hsv + " : " + rgb);
this.set(this.OPT.... | javascript | function() {
var hsv = [this.get(this.OPT.HUE),
this.get(this.OPT.SATURATION)/100,
this.get(this.OPT.VALUE)/100],
rgb = Color.hsv2rgb(hsv);
this.logger.log("HSV converted to RGB " + hsv + " : " + rgb);
this.set(this.OPT.... | [
"function",
"(",
")",
"{",
"var",
"hsv",
"=",
"[",
"this",
".",
"get",
"(",
"this",
".",
"OPT",
".",
"HUE",
")",
",",
"this",
".",
"get",
"(",
"this",
".",
"OPT",
".",
"SATURATION",
")",
"/",
"100",
",",
"this",
".",
"get",
"(",
"this",
".",
... | Updates the RGB values from the current state of the HSV
values. Executed when the one of the HSV form fields are
updated
_updateRGBFromHSV
@protected | [
"Updates",
"the",
"RGB",
"values",
"from",
"the",
"current",
"state",
"of",
"the",
"HSV",
"values",
".",
"Executed",
"when",
"the",
"one",
"of",
"the",
"HSV",
"form",
"fields",
"are",
"updated",
"_updateRGBFromHSV"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L1373-L1383 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(date, field, amount) {
var d = new Date(date.getTime());
switch (field) {
case this.MONTH:
var newMonth = date.getMonth() + amount;
var years = 0;
if (newMonth < 0) {
while (newMonth < 0) {
... | javascript | function(date, field, amount) {
var d = new Date(date.getTime());
switch (field) {
case this.MONTH:
var newMonth = date.getMonth() + amount;
var years = 0;
if (newMonth < 0) {
while (newMonth < 0) {
... | [
"function",
"(",
"date",
",",
"field",
",",
"amount",
")",
"{",
"var",
"d",
"=",
"new",
"Date",
"(",
"date",
".",
"getTime",
"(",
")",
")",
";",
"switch",
"(",
"field",
")",
"{",
"case",
"this",
".",
"MONTH",
":",
"var",
"newMonth",
"=",
"date",
... | Adds the specified amount of time to the this instance.
@method add
@param {Date} date The JavaScript Date object to perform addition on
@param {String} field The field constant to be used for performing addition.
@param {Number} amount The number of units (measured in the field constant) to add to the date.
@return {D... | [
"Adds",
"the",
"specified",
"amount",
"of",
"time",
"to",
"the",
"this",
"instance",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L773-L808 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(date, compareTo) {
var ms = compareTo.getTime();
if (date.getTime() < ms) {
return true;
} else {
return false;
}
} | javascript | function(date, compareTo) {
var ms = compareTo.getTime();
if (date.getTime() < ms) {
return true;
} else {
return false;
}
} | [
"function",
"(",
"date",
",",
"compareTo",
")",
"{",
"var",
"ms",
"=",
"compareTo",
".",
"getTime",
"(",
")",
";",
"if",
"(",
"date",
".",
"getTime",
"(",
")",
"<",
"ms",
")",
"{",
"return",
"true",
";",
"}",
"else",
"{",
"return",
"false",
";",
... | Determines whether a given date is before another date on the calendar.
@method before
@param {Date} date The Date object to compare with the compare argument
@param {Date} compareTo The Date object to use for the comparison
@return {Boolean} true if the date occurs before the compared date; false if not. | [
"Determines",
"whether",
"a",
"given",
"date",
"is",
"before",
"another",
"date",
"on",
"the",
"calendar",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L859-L866 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(date, dateBegin, dateEnd) {
if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
return true;
} else {
return false;
}
} | javascript | function(date, dateBegin, dateEnd) {
if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
return true;
} else {
return false;
}
} | [
"function",
"(",
"date",
",",
"dateBegin",
",",
"dateEnd",
")",
"{",
"if",
"(",
"this",
".",
"after",
"(",
"date",
",",
"dateBegin",
")",
"&&",
"this",
".",
"before",
"(",
"date",
",",
"dateEnd",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
... | Determines whether a given date is between two other dates on the calendar.
@method between
@param {Date} date The date to check for
@param {Date} dateBegin The start of the range
@param {Date} dateEnd The end of the range
@return {Boolean} true if the date occurs between the compared dates; false if not. | [
"Determines",
"whether",
"a",
"given",
"date",
"is",
"between",
"two",
"other",
"dates",
"on",
"the",
"calendar",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L892-L898 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(date, calendarYear) {
var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
// Find the number of days the passed in date is away from the calendar year start
var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_... | javascript | function(date, calendarYear) {
var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
// Find the number of days the passed in date is away from the calendar year start
var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_... | [
"function",
"(",
"date",
",",
"calendarYear",
")",
"{",
"var",
"beginYear",
"=",
"this",
".",
"getJan1",
"(",
"calendarYear",
")",
";",
"// Find the start of the year. This will be in week 1.",
"// Find the number of days the passed in date is away from the calendar year start",
... | Calculates the number of days the specified date is from January 1 of the specified calendar year.
Passing January 1 to this function would return an offset value of zero.
@method getDayOffset
@param {Date} date The JavaScript date for which to find the offset
@param {Number} calendarYear The calendar year to use for d... | [
"Calculates",
"the",
"number",
"of",
"days",
"the",
"specified",
"date",
"is",
"from",
"January",
"1",
"of",
"the",
"specified",
"calendar",
"year",
".",
"Passing",
"January",
"1",
"to",
"this",
"function",
"would",
"return",
"an",
"offset",
"value",
"of",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L918-L924 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(date, firstDayOfWeek, janDate) {
// Setup Defaults
firstDayOfWeek = firstDayOfWeek || 0;
janDate = janDate || this.WEEK_ONE_JAN_DATE;
var targetDate = this.clearTime(date),
startOfWeek,
endOfWeek;
if (targetDate.getDay() === firstDayOfWeek) {
... | javascript | function(date, firstDayOfWeek, janDate) {
// Setup Defaults
firstDayOfWeek = firstDayOfWeek || 0;
janDate = janDate || this.WEEK_ONE_JAN_DATE;
var targetDate = this.clearTime(date),
startOfWeek,
endOfWeek;
if (targetDate.getDay() === firstDayOfWeek) {
... | [
"function",
"(",
"date",
",",
"firstDayOfWeek",
",",
"janDate",
")",
"{",
"// Setup Defaults",
"firstDayOfWeek",
"=",
"firstDayOfWeek",
"||",
"0",
";",
"janDate",
"=",
"janDate",
"||",
"this",
".",
"WEEK_ONE_JAN_DATE",
";",
"var",
"targetDate",
"=",
"this",
".... | Calculates the week number for the given date. Can currently support standard
U.S. week numbers, based on Jan 1st defining the 1st week of the year, and
ISO8601 week numbers, based on Jan 4th defining the 1st week of the year.
@method getWeekNumber
@param {Date} date The JavaScript date for which to find the week numb... | [
"Calculates",
"the",
"week",
"number",
"for",
"the",
"given",
"date",
".",
"Can",
"currently",
"support",
"standard",
"U",
".",
"S",
".",
"week",
"numbers",
"based",
"on",
"Jan",
"1st",
"defining",
"the",
"1st",
"week",
"of",
"the",
"year",
"and",
"ISO86... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L941-L982 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function (dt, startOfWeek) {
startOfWeek = startOfWeek || 0;
var dayOfWeekIndex = dt.getDay(),
dayOfWeek = (dayOfWeekIndex - startOfWeek + 7) % 7;
return this.subtract(dt, this.DAY, dayOfWeek);
} | javascript | function (dt, startOfWeek) {
startOfWeek = startOfWeek || 0;
var dayOfWeekIndex = dt.getDay(),
dayOfWeek = (dayOfWeekIndex - startOfWeek + 7) % 7;
return this.subtract(dt, this.DAY, dayOfWeek);
} | [
"function",
"(",
"dt",
",",
"startOfWeek",
")",
"{",
"startOfWeek",
"=",
"startOfWeek",
"||",
"0",
";",
"var",
"dayOfWeekIndex",
"=",
"dt",
".",
"getDay",
"(",
")",
",",
"dayOfWeek",
"=",
"(",
"dayOfWeekIndex",
"-",
"startOfWeek",
"+",
"7",
")",
"%",
"... | Get the first day of the week, for the give date.
@param {Date} dt The date in the week for which the first day is required.
@param {Number} startOfWeek The index for the first day of the week, 0 = Sun, 1 = Mon ... 6 = Sat (defaults to 0)
@return {Date} The first day of the week | [
"Get",
"the",
"first",
"day",
"of",
"the",
"week",
"for",
"the",
"give",
"date",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L990-L996 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(weekBeginDate) {
var overlaps = false;
var nextWeek = this.add(weekBeginDate, this.DAY, 6);
if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
overlaps = true;
}
return overlaps;
} | javascript | function(weekBeginDate) {
var overlaps = false;
var nextWeek = this.add(weekBeginDate, this.DAY, 6);
if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
overlaps = true;
}
return overlaps;
} | [
"function",
"(",
"weekBeginDate",
")",
"{",
"var",
"overlaps",
"=",
"false",
";",
"var",
"nextWeek",
"=",
"this",
".",
"add",
"(",
"weekBeginDate",
",",
"this",
".",
"DAY",
",",
"6",
")",
";",
"if",
"(",
"nextWeek",
".",
"getFullYear",
"(",
")",
"!="... | Determines if a given week overlaps two different years.
@method isYearOverlapWeek
@param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
@return {Boolean} true if the date overlaps two different years. | [
"Determines",
"if",
"a",
"given",
"week",
"overlaps",
"two",
"different",
"years",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L1004-L1011 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(weekBeginDate) {
var overlaps = false;
var nextWeek = this.add(weekBeginDate, this.DAY, 6);
if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
overlaps = true;
}
return overlaps;
} | javascript | function(weekBeginDate) {
var overlaps = false;
var nextWeek = this.add(weekBeginDate, this.DAY, 6);
if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
overlaps = true;
}
return overlaps;
} | [
"function",
"(",
"weekBeginDate",
")",
"{",
"var",
"overlaps",
"=",
"false",
";",
"var",
"nextWeek",
"=",
"this",
".",
"add",
"(",
"weekBeginDate",
",",
"this",
".",
"DAY",
",",
"6",
")",
";",
"if",
"(",
"nextWeek",
".",
"getMonth",
"(",
")",
"!=",
... | Determines if a given week overlaps two different months.
@method isMonthOverlapWeek
@param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
@return {Boolean} true if the date overlaps two different months. | [
"Determines",
"if",
"a",
"given",
"week",
"overlaps",
"two",
"different",
"months",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L1019-L1026 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(date) {
var start = this.findMonthStart(date);
var nextMonth = this.add(start, this.MONTH, 1);
var end = this.subtract(nextMonth, this.DAY, 1);
return end;
} | javascript | function(date) {
var start = this.findMonthStart(date);
var nextMonth = this.add(start, this.MONTH, 1);
var end = this.subtract(nextMonth, this.DAY, 1);
return end;
} | [
"function",
"(",
"date",
")",
"{",
"var",
"start",
"=",
"this",
".",
"findMonthStart",
"(",
"date",
")",
";",
"var",
"nextMonth",
"=",
"this",
".",
"add",
"(",
"start",
",",
"this",
".",
"MONTH",
",",
"1",
")",
";",
"var",
"end",
"=",
"this",
"."... | Gets the last day of a month containing a given date.
@method findMonthEnd
@param {Date} date The JavaScript Date used to calculate the month end
@return {Date} The JavaScript Date representing the last day of the month | [
"Gets",
"the",
"last",
"day",
"of",
"a",
"month",
"containing",
"a",
"given",
"date",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L1045-L1050 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
var useIframe = args[0];
if (!this.parent) {
if (Dom.inDocument(this.oDomContainer)) {
if (useIframe) {
var pos = Dom.getStyle(this.oDomContainer, "position");
if (pos == "absolute" ... | javascript | function(type, args, obj) {
var useIframe = args[0];
if (!this.parent) {
if (Dom.inDocument(this.oDomContainer)) {
if (useIframe) {
var pos = Dom.getStyle(this.oDomContainer, "position");
if (pos == "absolute" ... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"useIframe",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"!",
"this",
".",
"parent",
")",
"{",
"if",
"(",
"Dom",
".",
"inDocument",
"(",
"this",
".",
"oDomContainer",
")",
")",
... | Default Config listener for the iframe property. If the iframe config property is set to true,
renders the built-in IFRAME shim if the container is relatively or absolutely positioned.
@method configIframe | [
"Default",
"Config",
"listener",
"for",
"the",
"iframe",
"property",
".",
"If",
"the",
"iframe",
"config",
"property",
"is",
"set",
"to",
"true",
"renders",
"the",
"built",
"-",
"in",
"IFRAME",
"shim",
"if",
"the",
"container",
"is",
"relatively",
"or",
"a... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L1677-L1710 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
var title = args[0];
// "" disables title bar
if (title) {
this.createTitleBar(title);
} else {
var close = this.cfg.getProperty(DEF_CFG.CLOSE.key);
if (!close) {
this.removeTitleBar();
} else {
... | javascript | function(type, args, obj) {
var title = args[0];
// "" disables title bar
if (title) {
this.createTitleBar(title);
} else {
var close = this.cfg.getProperty(DEF_CFG.CLOSE.key);
if (!close) {
this.removeTitleBar();
} else {
... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"title",
"=",
"args",
"[",
"0",
"]",
";",
"// \"\" disables title bar",
"if",
"(",
"title",
")",
"{",
"this",
".",
"createTitleBar",
"(",
"title",
")",
";",
"}",
"else",
"{",
"var",
... | Default handler for the "title" property
@method configTitle | [
"Default",
"handler",
"for",
"the",
"title",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L1716-L1730 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
var close = args[0],
title = this.cfg.getProperty(DEF_CFG.TITLE.key);
if (close) {
if (!title) {
this.createTitleBar(" ");
}
this.createCloseButton();
} else {
this.removeCloseButton... | javascript | function(type, args, obj) {
var close = args[0],
title = this.cfg.getProperty(DEF_CFG.TITLE.key);
if (close) {
if (!title) {
this.createTitleBar(" ");
}
this.createCloseButton();
} else {
this.removeCloseButton... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"close",
"=",
"args",
"[",
"0",
"]",
",",
"title",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"DEF_CFG",
".",
"TITLE",
".",
"key",
")",
";",
"if",
"(",
"close",
")",
"{",... | Default handler for the "close" property
@method configClose | [
"Default",
"handler",
"for",
"the",
"close",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L1736-L1751 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function() {
var defEvents = Calendar._EVENT_TYPES,
CE = YAHOO.util.CustomEvent,
cal = this; // To help with minification
/**
* Fired before a date selection is made
* @event beforeSelectEvent
*/
cal.beforeSelectEvent = new CE(defEvents.BEFORE_SE... | javascript | function() {
var defEvents = Calendar._EVENT_TYPES,
CE = YAHOO.util.CustomEvent,
cal = this; // To help with minification
/**
* Fired before a date selection is made
* @event beforeSelectEvent
*/
cal.beforeSelectEvent = new CE(defEvents.BEFORE_SE... | [
"function",
"(",
")",
"{",
"var",
"defEvents",
"=",
"Calendar",
".",
"_EVENT_TYPES",
",",
"CE",
"=",
"YAHOO",
".",
"util",
".",
"CustomEvent",
",",
"cal",
"=",
"this",
";",
"// To help with minification",
"/**\n * Fired before a date selection is made\n ... | Initializes Calendar's built-in CustomEvents
@method initEvents | [
"Initializes",
"Calendar",
"s",
"built",
"-",
"in",
"CustomEvents"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L1757-L1906 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(e, cal) {
Event.preventDefault(e);
// previousMonth invoked in a timeout, to allow
// event to bubble up, with correct target. Calling
// previousMonth, will call render which will remove
// HTML which generated the event, resulting in an
// invalid event targe... | javascript | function(e, cal) {
Event.preventDefault(e);
// previousMonth invoked in a timeout, to allow
// event to bubble up, with correct target. Calling
// previousMonth, will call render which will remove
// HTML which generated the event, resulting in an
// invalid event targe... | [
"function",
"(",
"e",
",",
"cal",
")",
"{",
"Event",
".",
"preventDefault",
"(",
"e",
")",
";",
"// previousMonth invoked in a timeout, to allow",
"// event to bubble up, with correct target. Calling",
"// previousMonth, will call render which will remove ",
"// HTML which generate... | The default event handler for clicks on the "Previous Month" navigation UI
@method doPreviousMonthNav
@param {DOMEvent} e The DOM event
@param {Calendar} cal A reference to the calendar | [
"The",
"default",
"event",
"handler",
"for",
"clicks",
"on",
"the",
"Previous",
"Month",
"navigation",
"UI"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L1915-L1933 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(e, cal) {
Event.preventDefault(e);
setTimeout(function() {
cal.nextMonth();
var navs = Dom.getElementsByClassName(cal.Style.CSS_NAV_RIGHT, "a", cal.oDomContainer);
if (navs && navs[0]) {
try {
navs[0].focus();
... | javascript | function(e, cal) {
Event.preventDefault(e);
setTimeout(function() {
cal.nextMonth();
var navs = Dom.getElementsByClassName(cal.Style.CSS_NAV_RIGHT, "a", cal.oDomContainer);
if (navs && navs[0]) {
try {
navs[0].focus();
... | [
"function",
"(",
"e",
",",
"cal",
")",
"{",
"Event",
".",
"preventDefault",
"(",
"e",
")",
";",
"setTimeout",
"(",
"function",
"(",
")",
"{",
"cal",
".",
"nextMonth",
"(",
")",
";",
"var",
"navs",
"=",
"Dom",
".",
"getElementsByClassName",
"(",
"cal"... | The default event handler for clicks on the "Next Month" navigation UI
@method doNextMonthNav
@param {DOMEvent} e The DOM event
@param {Calendar} cal A reference to the calendar | [
"The",
"default",
"event",
"handler",
"for",
"clicks",
"on",
"the",
"Next",
"Month",
"navigation",
"UI"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L1942-L1955 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(e, cal) {
var target;
if (e) {
target = Event.getTarget(e);
} else {
target = this;
}
while (target.tagName && target.tagName.toLowerCase() != "td") {
target = target.parentNode;
if (!target.tagName || target.tagName.toLow... | javascript | function(e, cal) {
var target;
if (e) {
target = Event.getTarget(e);
} else {
target = this;
}
while (target.tagName && target.tagName.toLowerCase() != "td") {
target = target.parentNode;
if (!target.tagName || target.tagName.toLow... | [
"function",
"(",
"e",
",",
"cal",
")",
"{",
"var",
"target",
";",
"if",
"(",
"e",
")",
"{",
"target",
"=",
"Event",
".",
"getTarget",
"(",
"e",
")",
";",
"}",
"else",
"{",
"target",
"=",
"this",
";",
"}",
"while",
"(",
"target",
".",
"tagName",... | The event that is executed when the user hovers over a cell
@method doCellMouseOver
@param {DOMEvent} e The event
@param {Calendar} cal A reference to the calendar passed by the Event utility | [
"The",
"event",
"that",
"is",
"executed",
"when",
"the",
"user",
"hovers",
"over",
"a",
"cell"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2035-L2053 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function() {
cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
} | javascript | function() {
cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
} | [
"function",
"(",
")",
"{",
"cfg",
".",
"refireEvent",
"(",
"DEF_CFG",
".",
"LOCALE_MONTHS",
".",
"key",
")",
";",
"cfg",
".",
"refireEvent",
"(",
"DEF_CFG",
".",
"LOCALE_WEEKDAYS",
".",
"key",
")",
";",
"}"
] | Refreshes the locale values used to build the Calendar.
@method refreshLocale
@private | [
"Refreshes",
"the",
"locale",
"values",
"used",
"to",
"build",
"the",
"Calendar",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2276-L2279 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
this.cfg.setProperty(DEF_CFG.PAGEDATE.key, this._parsePageDate(args[0]), true);
} | javascript | function(type, args, obj) {
this.cfg.setProperty(DEF_CFG.PAGEDATE.key, this._parsePageDate(args[0]), true);
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"this",
".",
"cfg",
".",
"setProperty",
"(",
"DEF_CFG",
".",
"PAGEDATE",
".",
"key",
",",
"this",
".",
"_parsePageDate",
"(",
"args",
"[",
"0",
"]",
")",
",",
"true",
")",
";",
"}"
] | The default handler for the "pagedate" property
@method configPageDate | [
"The",
"default",
"handler",
"for",
"the",
"pagedate",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2511-L2513 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
var val = args[0];
if (Lang.isString(val)) {
val = this._parseDate(val);
this.cfg.setProperty(DEF_CFG.MINDATE.key, DateMath.getDate(val[0],(val[1]-1),val[2]));
}
} | javascript | function(type, args, obj) {
var val = args[0];
if (Lang.isString(val)) {
val = this._parseDate(val);
this.cfg.setProperty(DEF_CFG.MINDATE.key, DateMath.getDate(val[0],(val[1]-1),val[2]));
}
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"val",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"Lang",
".",
"isString",
"(",
"val",
")",
")",
"{",
"val",
"=",
"this",
".",
"_parseDate",
"(",
"val",
")",
";",
"this",
"."... | The default handler for the "mindate" property
@method configMinDate | [
"The",
"default",
"handler",
"for",
"the",
"mindate",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2519-L2525 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
// Only do this for initial set. Changing the today property after the initial
// set, doesn't affect pagedate
var val = args[0];
if (Lang.isString(val)) {
val = this._parseDate(val);
}
var today = DateMath.clearTime(val);
i... | javascript | function(type, args, obj) {
// Only do this for initial set. Changing the today property after the initial
// set, doesn't affect pagedate
var val = args[0];
if (Lang.isString(val)) {
val = this._parseDate(val);
}
var today = DateMath.clearTime(val);
i... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"// Only do this for initial set. Changing the today property after the initial",
"// set, doesn't affect pagedate",
"var",
"val",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"Lang",
".",
"isString",
"(",
"... | The default handler for the "today" property
@method configToday | [
"The",
"default",
"handler",
"for",
"the",
"today",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2543-L2556 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
var selected = args[0],
cfgSelected = DEF_CFG.SELECTED.key;
if (selected) {
if (Lang.isString(selected)) {
this.cfg.setProperty(cfgSelected, this._parseDates(selected), true);
}
}
if (! this._select... | javascript | function(type, args, obj) {
var selected = args[0],
cfgSelected = DEF_CFG.SELECTED.key;
if (selected) {
if (Lang.isString(selected)) {
this.cfg.setProperty(cfgSelected, this._parseDates(selected), true);
}
}
if (! this._select... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"selected",
"=",
"args",
"[",
"0",
"]",
",",
"cfgSelected",
"=",
"DEF_CFG",
".",
"SELECTED",
".",
"key",
";",
"if",
"(",
"selected",
")",
"{",
"if",
"(",
"Lang",
".",
"isString",
... | The default handler for the "selected" property
@method configSelected | [
"The",
"default",
"handler",
"for",
"the",
"selected",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2562-L2574 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
this.Locale[type.toUpperCase()] = args[0];
this.cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
this.cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
} | javascript | function(type, args, obj) {
this.Locale[type.toUpperCase()] = args[0];
this.cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
this.cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"this",
".",
"Locale",
"[",
"type",
".",
"toUpperCase",
"(",
")",
"]",
"=",
"args",
"[",
"0",
"]",
";",
"this",
".",
"cfg",
".",
"refireEvent",
"(",
"DEF_CFG",
".",
"LOCALE_MONTHS",
".",
... | The default handler for all configuration locale properties
@method configLocale | [
"The",
"default",
"handler",
"for",
"all",
"configuration",
"locale",
"properties"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2588-L2593 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
type = type.toLowerCase();
var val = args[0],
cfg = this.cfg,
Locale = this.Locale;
switch (type) {
case DEF_CFG.LOCALE_MONTHS.key:
switch (val) {
case Calendar.SHORT:
L... | javascript | function(type, args, obj) {
type = type.toLowerCase();
var val = args[0],
cfg = this.cfg,
Locale = this.Locale;
switch (type) {
case DEF_CFG.LOCALE_MONTHS.key:
switch (val) {
case Calendar.SHORT:
L... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"type",
"=",
"type",
".",
"toLowerCase",
"(",
")",
";",
"var",
"val",
"=",
"args",
"[",
"0",
"]",
",",
"cfg",
"=",
"this",
".",
"cfg",
",",
"Locale",
"=",
"this",
".",
"Locale",
";",
... | The default handler for all configuration locale field length properties
@method configLocaleValues | [
"The",
"default",
"handler",
"for",
"all",
"configuration",
"locale",
"field",
"length",
"properties"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2599-L2643 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
var val = args[0];
if (YAHOO.widget.CalendarNavigator && (val === true || Lang.isObject(val))) {
if (!this.oNavigator) {
this.oNavigator = new YAHOO.widget.CalendarNavigator(this);
// Cleanup DOM Refs/Events before innerHTML is remo... | javascript | function(type, args, obj) {
var val = args[0];
if (YAHOO.widget.CalendarNavigator && (val === true || Lang.isObject(val))) {
if (!this.oNavigator) {
this.oNavigator = new YAHOO.widget.CalendarNavigator(this);
// Cleanup DOM Refs/Events before innerHTML is remo... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"val",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"YAHOO",
".",
"widget",
".",
"CalendarNavigator",
"&&",
"(",
"val",
"===",
"true",
"||",
"Lang",
".",
"isObject",
"(",
"val",
")... | The default handler for the "navigator" property
@method configNavigator | [
"The",
"default",
"handler",
"for",
"the",
"navigator",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2649-L2667 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function() {
var defStyle = Calendar.STYLES;
this.Style = {
/**
* @property Style.CSS_ROW_HEADER
*/
CSS_ROW_HEADER: defStyle.CSS_ROW_HEADER,
/**
* @property Style.CSS_ROW_FOOTER
*/
CSS_ROW_FOOTER: defStyle.... | javascript | function() {
var defStyle = Calendar.STYLES;
this.Style = {
/**
* @property Style.CSS_ROW_HEADER
*/
CSS_ROW_HEADER: defStyle.CSS_ROW_HEADER,
/**
* @property Style.CSS_ROW_FOOTER
*/
CSS_ROW_FOOTER: defStyle.... | [
"function",
"(",
")",
"{",
"var",
"defStyle",
"=",
"Calendar",
".",
"STYLES",
";",
"this",
".",
"Style",
"=",
"{",
"/**\n * @property Style.CSS_ROW_HEADER\n */",
"CSS_ROW_HEADER",
":",
"defStyle",
".",
"CSS_ROW_HEADER",
",",
"/**\n * @pr... | Defines the style constants for the Calendar
@method initStyles | [
"Defines",
"the",
"style",
"constants",
"for",
"the",
"Calendar"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2673-L2819 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(date) {
var monthLabel = this.Locale.LOCALE_MONTHS[date.getMonth()] + this.Locale.MY_LABEL_MONTH_SUFFIX,
yearLabel = (date.getFullYear() + this.Locale.YEAR_OFFSET) + this.Locale.MY_LABEL_YEAR_SUFFIX;
if (this.Locale.MY_LABEL_MONTH_POSITION == 2 || this.Locale.MY_LABEL_YEAR_POSITIO... | javascript | function(date) {
var monthLabel = this.Locale.LOCALE_MONTHS[date.getMonth()] + this.Locale.MY_LABEL_MONTH_SUFFIX,
yearLabel = (date.getFullYear() + this.Locale.YEAR_OFFSET) + this.Locale.MY_LABEL_YEAR_SUFFIX;
if (this.Locale.MY_LABEL_MONTH_POSITION == 2 || this.Locale.MY_LABEL_YEAR_POSITIO... | [
"function",
"(",
"date",
")",
"{",
"var",
"monthLabel",
"=",
"this",
".",
"Locale",
".",
"LOCALE_MONTHS",
"[",
"date",
".",
"getMonth",
"(",
")",
"]",
"+",
"this",
".",
"Locale",
".",
"MY_LABEL_MONTH_SUFFIX",
",",
"yearLabel",
"=",
"(",
"date",
".",
"g... | Helper method, to format a Month Year string, given a JavaScript Date, based on the
Calendar localization settings
@method _buildMonthLabel
@private
@param {Date} date
@return {String} Formated month, year string | [
"Helper",
"method",
"to",
"format",
"a",
"Month",
"Year",
"string",
"given",
"a",
"JavaScript",
"Date",
"based",
"on",
"the",
"Calendar",
"localization",
"settings"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2840-L2849 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(strTitle) {
var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div");
tDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE;
tDiv.innerHTML = strTitle;
this.oDomContainer.insertBefore(tDiv, t... | javascript | function(strTitle) {
var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div");
tDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE;
tDiv.innerHTML = strTitle;
this.oDomContainer.insertBefore(tDiv, t... | [
"function",
"(",
"strTitle",
")",
"{",
"var",
"tDiv",
"=",
"Dom",
".",
"getElementsByClassName",
"(",
"YAHOO",
".",
"widget",
".",
"CalendarGroup",
".",
"CSS_2UPTITLE",
",",
"\"div\"",
",",
"this",
".",
"oDomContainer",
")",
"[",
"0",
"]",
"||",
"document"... | Creates the title bar element and adds it to Calendar container DIV
@method createTitleBar
@param {String} strTitle The title to display in the title bar
@return The title bar element | [
"Creates",
"the",
"title",
"bar",
"element",
"and",
"adds",
"it",
"to",
"Calendar",
"container",
"DIV"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2868-L2877 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function() {
var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null;
if (tDiv) {
Event.purgeElement(tDiv);
this.oDomContainer.removeChild(tDiv);
}
Dom.removeClass(this.oDomContainer, this.Style.CSS_WITH... | javascript | function() {
var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null;
if (tDiv) {
Event.purgeElement(tDiv);
this.oDomContainer.removeChild(tDiv);
}
Dom.removeClass(this.oDomContainer, this.Style.CSS_WITH... | [
"function",
"(",
")",
"{",
"var",
"tDiv",
"=",
"Dom",
".",
"getElementsByClassName",
"(",
"YAHOO",
".",
"widget",
".",
"CalendarGroup",
".",
"CSS_2UPTITLE",
",",
"\"div\"",
",",
"this",
".",
"oDomContainer",
")",
"[",
"0",
"]",
"||",
"null",
";",
"if",
... | Removes the title bar element from the DOM
@method removeTitleBar | [
"Removes",
"the",
"title",
"bar",
"element",
"from",
"the",
"DOM"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2884-L2891 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function() {
var cssClose = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,
cssLinkClose = this.Style.CSS_LINK_CLOSE,
DEPR_CLOSE_PATH = "us/my/bn/x_d.gif",
lnk = Dom.getElementsByClassName(cssLinkClose, "a", this.oDomContainer)[0],
strings = this.cfg.getProp... | javascript | function() {
var cssClose = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,
cssLinkClose = this.Style.CSS_LINK_CLOSE,
DEPR_CLOSE_PATH = "us/my/bn/x_d.gif",
lnk = Dom.getElementsByClassName(cssLinkClose, "a", this.oDomContainer)[0],
strings = this.cfg.getProp... | [
"function",
"(",
")",
"{",
"var",
"cssClose",
"=",
"YAHOO",
".",
"widget",
".",
"CalendarGroup",
".",
"CSS_2UPCLOSE",
",",
"cssLinkClose",
"=",
"this",
".",
"Style",
".",
"CSS_LINK_CLOSE",
",",
"DEPR_CLOSE_PATH",
"=",
"\"us/my/bn/x_d.gif\"",
",",
"lnk",
"=",
... | Creates the close button HTML element and adds it to Calendar container DIV
@method createCloseButton
@return The close HTML element created | [
"Creates",
"the",
"close",
"button",
"HTML",
"element",
"and",
"adds",
"it",
"to",
"Calendar",
"container",
"DIV"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2899-L2930 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function() {
var btn = Dom.getElementsByClassName(this.Style.CSS_LINK_CLOSE, "a", this.oDomContainer)[0] || null;
if (btn) {
Event.purgeElement(btn);
this.oDomContainer.removeChild(btn);
}
} | javascript | function() {
var btn = Dom.getElementsByClassName(this.Style.CSS_LINK_CLOSE, "a", this.oDomContainer)[0] || null;
if (btn) {
Event.purgeElement(btn);
this.oDomContainer.removeChild(btn);
}
} | [
"function",
"(",
")",
"{",
"var",
"btn",
"=",
"Dom",
".",
"getElementsByClassName",
"(",
"this",
".",
"Style",
".",
"CSS_LINK_CLOSE",
",",
"\"a\"",
",",
"this",
".",
"oDomContainer",
")",
"[",
"0",
"]",
"||",
"null",
";",
"if",
"(",
"btn",
")",
"{",
... | Removes the close button HTML element from the DOM
@method removeCloseButton | [
"Removes",
"the",
"close",
"button",
"HTML",
"element",
"from",
"the",
"DOM"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L2937-L2943 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(html) {
html[html.length] = '<tr class="' + this.Style.CSS_WEEKDAY_ROW + '">';
if (this.cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key)) {
html[html.length] = '<th> </th>';
}
for(var i=0;i < this.Locale.LOCALE_WEEKDAYS.length; ++i) {
html[html.lengt... | javascript | function(html) {
html[html.length] = '<tr class="' + this.Style.CSS_WEEKDAY_ROW + '">';
if (this.cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key)) {
html[html.length] = '<th> </th>';
}
for(var i=0;i < this.Locale.LOCALE_WEEKDAYS.length; ++i) {
html[html.lengt... | [
"function",
"(",
"html",
")",
"{",
"html",
"[",
"html",
".",
"length",
"]",
"=",
"'<tr class=\"'",
"+",
"this",
".",
"Style",
".",
"CSS_WEEKDAY_ROW",
"+",
"'\">'",
";",
"if",
"(",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"DEF_CFG",
".",
"SHOW_WEEK_... | Renders the Calendar's weekday headers.
@method buildWeekdays
@param {Array} html The current working HTML array
@return {Array} The current working HTML array | [
"Renders",
"the",
"Calendar",
"s",
"weekday",
"headers",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L3038-L3057 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function() {
var root = this.oDomContainer,
cal = this.parent || this,
anchor = "a",
click = "click";
var linkLeft = Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, anchor, root),
linkRight = Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, anchor... | javascript | function() {
var root = this.oDomContainer,
cal = this.parent || this,
anchor = "a",
click = "click";
var linkLeft = Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, anchor, root),
linkRight = Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, anchor... | [
"function",
"(",
")",
"{",
"var",
"root",
"=",
"this",
".",
"oDomContainer",
",",
"cal",
"=",
"this",
".",
"parent",
"||",
"this",
",",
"anchor",
"=",
"\"a\"",
",",
"click",
"=",
"\"click\"",
";",
"var",
"linkLeft",
"=",
"Dom",
".",
"getElementsByClass... | Applies the Calendar's DOM listeners to applicable elements.
@method applyListeners | [
"Applies",
"the",
"Calendar",
"s",
"DOM",
"listeners",
"to",
"applicable",
"elements",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L3340-L3389 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(id) {
var date = this.getDateFieldsByCellId(id);
return (date) ? DateMath.getDate(date[0],date[1]-1,date[2]) : null;
} | javascript | function(id) {
var date = this.getDateFieldsByCellId(id);
return (date) ? DateMath.getDate(date[0],date[1]-1,date[2]) : null;
} | [
"function",
"(",
"id",
")",
"{",
"var",
"date",
"=",
"this",
".",
"getDateFieldsByCellId",
"(",
"id",
")",
";",
"return",
"(",
"date",
")",
"?",
"DateMath",
".",
"getDate",
"(",
"date",
"[",
"0",
"]",
",",
"date",
"[",
"1",
"]",
"-",
"1",
",",
... | Retrieves the Date object for the specified Calendar cell
@method getDateByCellId
@param {String} id The id of the cell
@return {Date} The Date object for the specified Calendar cell | [
"Retrieves",
"the",
"Date",
"object",
"for",
"the",
"specified",
"Calendar",
"cell"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L3421-L3424 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(strId) {
var idx = -1,
li = strId.lastIndexOf("_cell");
if (li > -1) {
idx = parseInt(strId.substring(li + 5), 10);
}
return idx;
} | javascript | function(strId) {
var idx = -1,
li = strId.lastIndexOf("_cell");
if (li > -1) {
idx = parseInt(strId.substring(li + 5), 10);
}
return idx;
} | [
"function",
"(",
"strId",
")",
"{",
"var",
"idx",
"=",
"-",
"1",
",",
"li",
"=",
"strId",
".",
"lastIndexOf",
"(",
"\"_cell\"",
")",
";",
"if",
"(",
"li",
">",
"-",
"1",
")",
"{",
"idx",
"=",
"parseInt",
"(",
"strId",
".",
"substring",
"(",
"li... | Given the id used to mark each Calendar cell, this method
extracts the index number from the id.
@param {String} strId The cell id
@return {Number} The index of the cell, or -1 if id does not contain an index number | [
"Given",
"the",
"id",
"used",
"to",
"mark",
"each",
"Calendar",
"cell",
"this",
"method",
"extracts",
"the",
"index",
"number",
"from",
"the",
"id",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L3479-L3488 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(workingDate, cell) {
Dom.addClass(cell, this.Style.CSS_CELL_OOB);
cell.innerHTML = workingDate.getDate();
return Calendar.STOP_RENDER;
} | javascript | function(workingDate, cell) {
Dom.addClass(cell, this.Style.CSS_CELL_OOB);
cell.innerHTML = workingDate.getDate();
return Calendar.STOP_RENDER;
} | [
"function",
"(",
"workingDate",
",",
"cell",
")",
"{",
"Dom",
".",
"addClass",
"(",
"cell",
",",
"this",
".",
"Style",
".",
"CSS_CELL_OOB",
")",
";",
"cell",
".",
"innerHTML",
"=",
"workingDate",
".",
"getDate",
"(",
")",
";",
"return",
"Calendar",
"."... | BEGIN BUILT-IN TABLE CELL RENDERERS
Renders a cell that falls before the minimum date or after the maximum date.
widget class.
@method renderOutOfBoundsDate
@param {Date} workingDate The current working Date object being used to generate the calendar
@param {HTMLTableCellElement} cell The current working cell i... | [
"BEGIN",
"BUILT",
"-",
"IN",
"TABLE",
"CELL",
"RENDERERS",
"Renders",
"a",
"cell",
"that",
"falls",
"before",
"the",
"minimum",
"date",
"or",
"after",
"the",
"maximum",
"date",
".",
"widget",
"class",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L3501-L3505 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(workingDate, cell) {
Dom.addClass(cell, this.Style.CSS_CELL);
Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED);
cell.innerHTML=workingDate.getDate();
return Calendar.STOP_RENDER;
} | javascript | function(workingDate, cell) {
Dom.addClass(cell, this.Style.CSS_CELL);
Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED);
cell.innerHTML=workingDate.getDate();
return Calendar.STOP_RENDER;
} | [
"function",
"(",
"workingDate",
",",
"cell",
")",
"{",
"Dom",
".",
"addClass",
"(",
"cell",
",",
"this",
".",
"Style",
".",
"CSS_CELL",
")",
";",
"Dom",
".",
"addClass",
"(",
"cell",
",",
"this",
".",
"Style",
".",
"CSS_CELL_RESTRICTED",
")",
";",
"c... | Renders the current calendar cell as a non-selectable "black-out" date using the default
restricted style.
@method renderBodyCellRestricted
@param {Date} workingDate The current working Date object being used to generate the calendar
@param {HTMLTableCellElement} cell The current working cell in the calendar
@re... | [
"Renders",
"the",
"current",
"calendar",
"cell",
"as",
"a",
"non",
"-",
"selectable",
"black",
"-",
"out",
"date",
"using",
"the",
"default",
"restricted",
"style",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L3639-L3644 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(count) {
var cfgPageDate = DEF_CFG.PAGEDATE.key,
prevDate = this.cfg.getProperty(cfgPageDate),
newDate = DateMath.add(prevDate, DateMath.YEAR, count);
this.cfg.setProperty(cfgPageDate, newDate);
this.resetRenderers();
this.changePageEvent.fire(prevDate, newDate... | javascript | function(count) {
var cfgPageDate = DEF_CFG.PAGEDATE.key,
prevDate = this.cfg.getProperty(cfgPageDate),
newDate = DateMath.add(prevDate, DateMath.YEAR, count);
this.cfg.setProperty(cfgPageDate, newDate);
this.resetRenderers();
this.changePageEvent.fire(prevDate, newDate... | [
"function",
"(",
"count",
")",
"{",
"var",
"cfgPageDate",
"=",
"DEF_CFG",
".",
"PAGEDATE",
".",
"key",
",",
"prevDate",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"cfgPageDate",
")",
",",
"newDate",
"=",
"DateMath",
".",
"add",
"(",
"prevDate",
... | Adds the designated number of years to the current calendar, and sets the current
calendar page date to the new month.
@method addYears
@param {Number} count The number of years to add to the current calendar | [
"Adds",
"the",
"designated",
"number",
"of",
"years",
"to",
"the",
"current",
"calendar",
"and",
"sets",
"the",
"current",
"calendar",
"page",
"date",
"to",
"the",
"new",
"month",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L3683-L3692 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(array1, array2) {
var match = false;
if (array1[0]==array2[0]&&array1[1]==array2[1]&&array1[2]==array2[2]) {
match=true;
}
return match;
} | javascript | function(array1, array2) {
var match = false;
if (array1[0]==array2[0]&&array1[1]==array2[1]&&array1[2]==array2[2]) {
match=true;
}
return match;
} | [
"function",
"(",
"array1",
",",
"array2",
")",
"{",
"var",
"match",
"=",
"false",
";",
"if",
"(",
"array1",
"[",
"0",
"]",
"==",
"array2",
"[",
"0",
"]",
"&&",
"array1",
"[",
"1",
"]",
"==",
"array2",
"[",
"1",
"]",
"&&",
"array1",
"[",
"2",
... | BEGIN UTILITY METHODS
Determines if 2 field arrays are equal.
@method _fieldArraysAreEqual
@private
@param {Number[]} array1 The first date field array to compare
@param {Number[]} array2 The first date field array to compare
@return {Boolean} The boolean that represents the equality of the two arrays | [
"BEGIN",
"UTILITY",
"METHODS",
"Determines",
"if",
"2",
"field",
"arrays",
"are",
"equal",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L4069-L4077 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(sDate) {
var aDate = sDate.split(this.Locale.DATE_FIELD_DELIMITER),
rArray;
if (aDate.length == 2) {
rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]];
rArray.type = Calendar.MONTH_DAY;
} else {
rArray... | javascript | function(sDate) {
var aDate = sDate.split(this.Locale.DATE_FIELD_DELIMITER),
rArray;
if (aDate.length == 2) {
rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]];
rArray.type = Calendar.MONTH_DAY;
} else {
rArray... | [
"function",
"(",
"sDate",
")",
"{",
"var",
"aDate",
"=",
"sDate",
".",
"split",
"(",
"this",
".",
"Locale",
".",
"DATE_FIELD_DELIMITER",
")",
",",
"rArray",
";",
"if",
"(",
"aDate",
".",
"length",
"==",
"2",
")",
"{",
"rArray",
"=",
"[",
"aDate",
"... | BEGIN DATE PARSE METHODS
Converts a date string to a date field array
@private
@param {String} sDate Date string. Valid formats are mm/dd and mm/dd/yyyy.
@return A date field array representing the string passed to the method
@type Array[](Number[]) | [
"BEGIN",
"DATE",
"PARSE",
"METHODS",
"Converts",
"a",
"date",
"string",
"to",
"a",
"date",
"field",
"array"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L4251-L4268 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(sDates) {
var aReturn = [],
aDates = sDates.split(this.Locale.DATE_DELIMITER);
for (var d=0;d<aDates.length;++d) {
var sDate = aDates[d];
if (sDate.indexOf(this.Locale.DATE_RANGE_DELIMITER) != -1) {
// This is a range
... | javascript | function(sDates) {
var aReturn = [],
aDates = sDates.split(this.Locale.DATE_DELIMITER);
for (var d=0;d<aDates.length;++d) {
var sDate = aDates[d];
if (sDate.indexOf(this.Locale.DATE_RANGE_DELIMITER) != -1) {
// This is a range
... | [
"function",
"(",
"sDates",
")",
"{",
"var",
"aReturn",
"=",
"[",
"]",
",",
"aDates",
"=",
"sDates",
".",
"split",
"(",
"this",
".",
"Locale",
".",
"DATE_DELIMITER",
")",
";",
"for",
"(",
"var",
"d",
"=",
"0",
";",
"d",
"<",
"aDates",
".",
"length... | Converts a multi or single-date string to an array of date field arrays
@private
@param {String} sDates Date string with one or more comma-delimited dates. Valid formats are mm/dd, mm/dd/yyyy, mm/dd/yyyy-mm/dd/yyyy
@return An array of date field arrays
@type Array[](Number[]) | [
"Converts",
"a",
"multi",
"or",
"single",
"-",
"date",
"string",
"to",
"an",
"array",
"of",
"date",
"field",
"arrays"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L4277-L4299 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(startDate, endDate) {
var dCurrent = DateMath.add(DateMath.getDate(startDate[0],startDate[1]-1,startDate[2]),DateMath.DAY,1),
dEnd = DateMath.getDate(endDate[0], endDate[1]-1, endDate[2]),
results = [];
results.push(startDate);
while (dCurrent.getTime() <=... | javascript | function(startDate, endDate) {
var dCurrent = DateMath.add(DateMath.getDate(startDate[0],startDate[1]-1,startDate[2]),DateMath.DAY,1),
dEnd = DateMath.getDate(endDate[0], endDate[1]-1, endDate[2]),
results = [];
results.push(startDate);
while (dCurrent.getTime() <=... | [
"function",
"(",
"startDate",
",",
"endDate",
")",
"{",
"var",
"dCurrent",
"=",
"DateMath",
".",
"add",
"(",
"DateMath",
".",
"getDate",
"(",
"startDate",
"[",
"0",
"]",
",",
"startDate",
"[",
"1",
"]",
"-",
"1",
",",
"startDate",
"[",
"2",
"]",
")... | Converts a date range to the full list of included dates
@private
@param {Number[]} startDate Date field array representing the first date in the range
@param {Number[]} endDate Date field array representing the last date in the range
@return An array of date field arrays
@type Array[](Number[]) | [
"Converts",
"a",
"date",
"range",
"to",
"the",
"full",
"list",
"of",
"included",
"dates"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L4309-L4320 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, aDates, fnRender) {
var add = [type,aDates,fnRender];
this.renderStack.unshift(add);
this._renderStack = this.renderStack.concat();
} | javascript | function(type, aDates, fnRender) {
var add = [type,aDates,fnRender];
this.renderStack.unshift(add);
this._renderStack = this.renderStack.concat();
} | [
"function",
"(",
"type",
",",
"aDates",
",",
"fnRender",
")",
"{",
"var",
"add",
"=",
"[",
"type",
",",
"aDates",
",",
"fnRender",
"]",
";",
"this",
".",
"renderStack",
".",
"unshift",
"(",
"add",
")",
";",
"this",
".",
"_renderStack",
"=",
"this",
... | The private method used for adding cell renderers to the local render stack.
This method is called by other methods that set the renderer type prior to the method call.
@method _addRenderer
@private
@param {String} type The type string that indicates the type of date renderer being added.
Values are YAHOO.widget.Calen... | [
"The",
"private",
"method",
"used",
"for",
"adding",
"cell",
"renderers",
"to",
"the",
"local",
"render",
"stack",
".",
"This",
"method",
"is",
"called",
"by",
"other",
"methods",
"that",
"set",
"the",
"renderer",
"type",
"prior",
"to",
"the",
"method",
"c... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L4390-L4394 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(style) {
for (var c=0;c<this.cells.length;++c) {
Dom.removeClass(this.cells[c],style);
}
} | javascript | function(style) {
for (var c=0;c<this.cells.length;++c) {
Dom.removeClass(this.cells[c],style);
}
} | [
"function",
"(",
"style",
")",
"{",
"for",
"(",
"var",
"c",
"=",
"0",
";",
"c",
"<",
"this",
".",
"cells",
".",
"length",
";",
"++",
"c",
")",
"{",
"Dom",
".",
"removeClass",
"(",
"this",
".",
"cells",
"[",
"c",
"]",
",",
"style",
")",
";",
... | BEGIN CSS METHODS
Removes all styles from all body cells in the current calendar table.
@method clearAllBodyCellStyles
@param {style} style The CSS class name to remove from all calendar body cells | [
"BEGIN",
"CSS",
"METHODS",
"Removes",
"all",
"styles",
"from",
"all",
"body",
"cells",
"in",
"the",
"current",
"calendar",
"table",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L4427-L4431 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(year) {
var cfgPageDate = DEF_CFG.PAGEDATE.key,
current = this.cfg.getProperty(cfgPageDate);
current.setFullYear(parseInt(year, 10) - this.Locale.YEAR_OFFSET);
this.cfg.setProperty(cfgPageDate, current);
} | javascript | function(year) {
var cfgPageDate = DEF_CFG.PAGEDATE.key,
current = this.cfg.getProperty(cfgPageDate);
current.setFullYear(parseInt(year, 10) - this.Locale.YEAR_OFFSET);
this.cfg.setProperty(cfgPageDate, current);
} | [
"function",
"(",
"year",
")",
"{",
"var",
"cfgPageDate",
"=",
"DEF_CFG",
".",
"PAGEDATE",
".",
"key",
",",
"current",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"cfgPageDate",
")",
";",
"current",
".",
"setFullYear",
"(",
"parseInt",
"(",
"year",
... | Sets the calendar's year explicitly.
@method setYear
@param {Number} year The numeric 4-digit year | [
"Sets",
"the",
"calendar",
"s",
"year",
"explicitly",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L4453-L4459 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function() {
var returnDates = [],
selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);
for (var d=0;d<selected.length;++d) {
var dateArray = selected[d];
var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
returnDates.push(date);
... | javascript | function() {
var returnDates = [],
selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);
for (var d=0;d<selected.length;++d) {
var dateArray = selected[d];
var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
returnDates.push(date);
... | [
"function",
"(",
")",
"{",
"var",
"returnDates",
"=",
"[",
"]",
",",
"selected",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"DEF_CFG",
".",
"SELECTED",
".",
"key",
")",
";",
"for",
"(",
"var",
"d",
"=",
"0",
";",
"d",
"<",
"selected",
".",... | Gets the list of currently selected dates from the calendar.
@method getSelectedDates
@return {Date[]} An array of currently selected JavaScript Date objects. | [
"Gets",
"the",
"list",
"of",
"currently",
"selected",
"dates",
"from",
"the",
"calendar",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L4466-L4479 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function() {
if (this.beforeDestroyEvent.fire()) {
var cal = this;
// Child objects
if (cal.navigator) {
cal.navigator.destroy();
}
if (cal.cfg) {
cal.cfg.destroy();
}
// DOM event listeners
... | javascript | function() {
if (this.beforeDestroyEvent.fire()) {
var cal = this;
// Child objects
if (cal.navigator) {
cal.navigator.destroy();
}
if (cal.cfg) {
cal.cfg.destroy();
}
// DOM event listeners
... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"beforeDestroyEvent",
".",
"fire",
"(",
")",
")",
"{",
"var",
"cal",
"=",
"this",
";",
"// Child objects",
"if",
"(",
"cal",
".",
"navigator",
")",
"{",
"cal",
".",
"navigator",
".",
"destroy",
"(",
... | Destroys the Calendar instance. The method will remove references
to HTML elements, remove any event listeners added by the Calendar,
and destroy the Config and CalendarNavigator instances it has created.
@method destroy | [
"Destroys",
"the",
"Calendar",
"instance",
".",
"The",
"method",
"will",
"remove",
"references",
"to",
"HTML",
"elements",
"remove",
"any",
"event",
"listeners",
"added",
"by",
"the",
"Calendar",
"and",
"destroy",
"the",
"Config",
"and",
"CalendarNavigator",
"in... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L4544-L4573 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(fn, obj, bOverride) {
for (var p=0;p<me.pages.length;++p) {
var cal = me.pages[p];
cal[this.type + strEvent].subscribe(fn, obj, bOverride);
}
} | javascript | function(fn, obj, bOverride) {
for (var p=0;p<me.pages.length;++p) {
var cal = me.pages[p];
cal[this.type + strEvent].subscribe(fn, obj, bOverride);
}
} | [
"function",
"(",
"fn",
",",
"obj",
",",
"bOverride",
")",
"{",
"for",
"(",
"var",
"p",
"=",
"0",
";",
"p",
"<",
"me",
".",
"pages",
".",
"length",
";",
"++",
"p",
")",
"{",
"var",
"cal",
"=",
"me",
".",
"pages",
"[",
"p",
"]",
";",
"cal",
... | Proxy subscriber to subscribe to the CalendarGroup's child Calendars' CustomEvents
@method sub
@private
@param {Function} fn The function to subscribe to this CustomEvent
@param {Object} obj The CustomEvent's scope object
@param {Boolean} bOverride Whether or not to apply scope correction | [
"Proxy",
"subscriber",
"to",
"subscribe",
"to",
"the",
"CalendarGroup",
"s",
"child",
"Calendars",
"CustomEvents"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5153-L5158 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(fn, obj) {
for (var p=0;p<me.pages.length;++p) {
var cal = me.pages[p];
cal[this.type + strEvent].unsubscribe(fn, obj);
}
} | javascript | function(fn, obj) {
for (var p=0;p<me.pages.length;++p) {
var cal = me.pages[p];
cal[this.type + strEvent].unsubscribe(fn, obj);
}
} | [
"function",
"(",
"fn",
",",
"obj",
")",
"{",
"for",
"(",
"var",
"p",
"=",
"0",
";",
"p",
"<",
"me",
".",
"pages",
".",
"length",
";",
"++",
"p",
")",
"{",
"var",
"cal",
"=",
"me",
".",
"pages",
"[",
"p",
"]",
";",
"cal",
"[",
"this",
".",... | Proxy unsubscriber to unsubscribe from the CalendarGroup's child Calendars' CustomEvents
@method unsub
@private
@param {Function} fn The function to subscribe to this CustomEvent
@param {Object} obj The CustomEvent's scope object | [
"Proxy",
"unsubscriber",
"to",
"unsubscribe",
"from",
"the",
"CalendarGroup",
"s",
"child",
"Calendars",
"CustomEvents"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5167-L5172 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
var pageCount = args[0],
cfgPageDate = DEF_CFG.PAGEDATE.key,
sep = "_",
caldate,
firstPageDate = null,
groupCalClass = "groupcal",
firstClass = "first-of-type",
lastClass = "last-of-type";
fo... | javascript | function(type, args, obj) {
var pageCount = args[0],
cfgPageDate = DEF_CFG.PAGEDATE.key,
sep = "_",
caldate,
firstPageDate = null,
groupCalClass = "groupcal",
firstClass = "first-of-type",
lastClass = "last-of-type";
fo... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"pageCount",
"=",
"args",
"[",
"0",
"]",
",",
"cfgPageDate",
"=",
"DEF_CFG",
".",
"PAGEDATE",
".",
"key",
",",
"sep",
"=",
"\"_\"",
",",
"caldate",
",",
"firstPageDate",
"=",
"null",
... | The default Config handler for the "pages" property
@method configPages
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj The scope object. F... | [
"The",
"default",
"Config",
"handler",
"for",
"the",
"pages",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5326-L5370 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
var val = args[0],
firstPageDate;
var cfgPageDate = DEF_CFG.PAGEDATE.key;
for (var p=0;p<this.pages.length;++p) {
var cal = this.pages[p];
if (p === 0) {
firstPageDate = cal._parsePageDate(val);
... | javascript | function(type, args, obj) {
var val = args[0],
firstPageDate;
var cfgPageDate = DEF_CFG.PAGEDATE.key;
for (var p=0;p<this.pages.length;++p) {
var cal = this.pages[p];
if (p === 0) {
firstPageDate = cal._parsePageDate(val);
... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"val",
"=",
"args",
"[",
"0",
"]",
",",
"firstPageDate",
";",
"var",
"cfgPageDate",
"=",
"DEF_CFG",
".",
"PAGEDATE",
".",
"key",
";",
"for",
"(",
"var",
"p",
"=",
"0",
";",
"p",
... | The default Config handler for the "pagedate" property
@method configPageDate
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj The scope obj... | [
"The",
"default",
"Config",
"handler",
"for",
"the",
"pagedate",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5379-L5396 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
var cfgSelected = DEF_CFG.SELECTED.key;
this.delegateConfig(type, args, obj);
var selected = (this.pages.length > 0) ? this.pages[0].cfg.getProperty(cfgSelected) : [];
this.cfg.setProperty(cfgSelected, selected, true);
} | javascript | function(type, args, obj) {
var cfgSelected = DEF_CFG.SELECTED.key;
this.delegateConfig(type, args, obj);
var selected = (this.pages.length > 0) ? this.pages[0].cfg.getProperty(cfgSelected) : [];
this.cfg.setProperty(cfgSelected, selected, true);
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"cfgSelected",
"=",
"DEF_CFG",
".",
"SELECTED",
".",
"key",
";",
"this",
".",
"delegateConfig",
"(",
"type",
",",
"args",
",",
"obj",
")",
";",
"var",
"selected",
"=",
"(",
"this",
... | The default Config handler for the CalendarGroup "selected" property
@method configSelected
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj... | [
"The",
"default",
"Config",
"handler",
"for",
"the",
"CalendarGroup",
"selected",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5405-L5410 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(type, args, obj) {
var val = args[0];
var cal;
for (var p=0;p<this.pages.length;p++) {
cal = this.pages[p];
cal.cfg.setProperty(type, val);
}
} | javascript | function(type, args, obj) {
var val = args[0];
var cal;
for (var p=0;p<this.pages.length;p++) {
cal = this.pages[p];
cal.cfg.setProperty(type, val);
}
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"val",
"=",
"args",
"[",
"0",
"]",
";",
"var",
"cal",
";",
"for",
"(",
"var",
"p",
"=",
"0",
";",
"p",
"<",
"this",
".",
"pages",
".",
"length",
";",
"p",
"++",
")",
"{",
... | Delegates a configuration property to the CustomEvents associated with the CalendarGroup's children
@method delegateConfig
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for th... | [
"Delegates",
"a",
"configuration",
"property",
"to",
"the",
"CustomEvents",
"associated",
"with",
"the",
"CalendarGroup",
"s",
"children"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5420-L5428 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(fnName, fn) {
var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
for (var p=0;p<pageCount;++p) {
this.pages[p][fnName] = fn;
}
} | javascript | function(fnName, fn) {
var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
for (var p=0;p<pageCount;++p) {
this.pages[p][fnName] = fn;
}
} | [
"function",
"(",
"fnName",
",",
"fn",
")",
"{",
"var",
"pageCount",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"DEF_CFG",
".",
"PAGES",
".",
"key",
")",
";",
"for",
"(",
"var",
"p",
"=",
"0",
";",
"p",
"<",
"pageCount",
";",
"++",
"p",
"... | Adds a function to all child Calendars within this CalendarGroup.
@method setChildFunction
@param {String} fnName The name of the function
@param {Function} fn The function to apply to each Calendar page object | [
"Adds",
"a",
"function",
"to",
"all",
"child",
"Calendars",
"within",
"this",
"CalendarGroup",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5436-L5442 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(fnName, args) {
var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
for (var p=0;p<pageCount;++p) {
var page = this.pages[p];
if (page[fnName]) {
var fn = page[fnName];
fn.call(page, args);
}
}
} | javascript | function(fnName, args) {
var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
for (var p=0;p<pageCount;++p) {
var page = this.pages[p];
if (page[fnName]) {
var fn = page[fnName];
fn.call(page, args);
}
}
} | [
"function",
"(",
"fnName",
",",
"args",
")",
"{",
"var",
"pageCount",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"DEF_CFG",
".",
"PAGES",
".",
"key",
")",
";",
"for",
"(",
"var",
"p",
"=",
"0",
";",
"p",
"<",
"pageCount",
";",
"++",
"p",
... | Calls a function within all child Calendars within this CalendarGroup.
@method callChildFunction
@param {String} fnName The name of the function
@param {Array} args The arguments to pass to the function | [
"Calls",
"a",
"function",
"within",
"all",
"child",
"Calendars",
"within",
"this",
"CalendarGroup",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5450-L5460 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(id,containerId,config) {
var container = document.getElementById(containerId);
if (! container) {
container = document.createElement("div");
container.id = containerId;
this.oDomContainer.appendChild(container);
}
return new Calendar(id,contai... | javascript | function(id,containerId,config) {
var container = document.getElementById(containerId);
if (! container) {
container = document.createElement("div");
container.id = containerId;
this.oDomContainer.appendChild(container);
}
return new Calendar(id,contai... | [
"function",
"(",
"id",
",",
"containerId",
",",
"config",
")",
"{",
"var",
"container",
"=",
"document",
".",
"getElementById",
"(",
"containerId",
")",
";",
"if",
"(",
"!",
"container",
")",
"{",
"container",
"=",
"document",
".",
"createElement",
"(",
... | Constructs a child calendar. This method can be overridden if a subclassed version of the default
calendar is to be used.
@method constructChild
@param {String} id The id of the table element that will represent the calendar widget
@param {String} containerId The id of the container div element that will wrap the cal... | [
"Constructs",
"a",
"child",
"calendar",
".",
"This",
"method",
"can",
"be",
"overridden",
"if",
"a",
"subclassed",
"version",
"of",
"the",
"default",
"calendar",
"is",
"to",
"be",
"used",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5471-L5479 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(month) {
month = parseInt(month, 10);
var currYear;
var cfgPageDate = DEF_CFG.PAGEDATE.key;
for (var p=0; p<this.pages.length; ++p) {
var cal = this.pages[p];
var pageDate = cal.cfg.getProperty(cfgPageDate);
if (p === 0) {
cu... | javascript | function(month) {
month = parseInt(month, 10);
var currYear;
var cfgPageDate = DEF_CFG.PAGEDATE.key;
for (var p=0; p<this.pages.length; ++p) {
var cal = this.pages[p];
var pageDate = cal.cfg.getProperty(cfgPageDate);
if (p === 0) {
cu... | [
"function",
"(",
"month",
")",
"{",
"month",
"=",
"parseInt",
"(",
"month",
",",
"10",
")",
";",
"var",
"currYear",
";",
"var",
"cfgPageDate",
"=",
"DEF_CFG",
".",
"PAGEDATE",
".",
"key",
";",
"for",
"(",
"var",
"p",
"=",
"0",
";",
"p",
"<",
"thi... | Sets the calendar group's month explicitly. This month will be set into the first
page of the multi-page calendar, and all other months will be iterated appropriately.
@method setMonth
@param {Number} month The numeric month, from 0 (January) to 11 (December) | [
"Sets",
"the",
"calendar",
"group",
"s",
"month",
"explicitly",
".",
"This",
"month",
"will",
"be",
"set",
"into",
"the",
"first",
"page",
"of",
"the",
"multi",
"-",
"page",
"calendar",
"and",
"all",
"other",
"months",
"will",
"be",
"iterated",
"appropriat... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5487-L5504 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(year) {
var cfgPageDate = DEF_CFG.PAGEDATE.key;
year = parseInt(year, 10);
for (var p=0;p<this.pages.length;++p) {
var cal = this.pages[p];
var pageDate = cal.cfg.getProperty(cfgPageDate);
if ((pageDate.getMonth()+1) == 1 && p>0) {
... | javascript | function(year) {
var cfgPageDate = DEF_CFG.PAGEDATE.key;
year = parseInt(year, 10);
for (var p=0;p<this.pages.length;++p) {
var cal = this.pages[p];
var pageDate = cal.cfg.getProperty(cfgPageDate);
if ((pageDate.getMonth()+1) == 1 && p>0) {
... | [
"function",
"(",
"year",
")",
"{",
"var",
"cfgPageDate",
"=",
"DEF_CFG",
".",
"PAGEDATE",
".",
"key",
";",
"year",
"=",
"parseInt",
"(",
"year",
",",
"10",
")",
";",
"for",
"(",
"var",
"p",
"=",
"0",
";",
"p",
"<",
"this",
".",
"pages",
".",
"l... | Sets the calendar group's year explicitly. This year will be set into the first
page of the multi-page calendar, and all other months will be iterated appropriately.
@method setYear
@param {Number} year The numeric 4-digit year | [
"Sets",
"the",
"calendar",
"group",
"s",
"year",
"explicitly",
".",
"This",
"year",
"will",
"be",
"set",
"into",
"the",
"first",
"page",
"of",
"the",
"multi",
"-",
"page",
"calendar",
"and",
"all",
"other",
"months",
"will",
"be",
"iterated",
"appropriatel... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5512-L5526 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function() {
this.renderHeader();
for (var p=0;p<this.pages.length;++p) {
var cal = this.pages[p];
cal.render();
}
this.renderFooter();
} | javascript | function() {
this.renderHeader();
for (var p=0;p<this.pages.length;++p) {
var cal = this.pages[p];
cal.render();
}
this.renderFooter();
} | [
"function",
"(",
")",
"{",
"this",
".",
"renderHeader",
"(",
")",
";",
"for",
"(",
"var",
"p",
"=",
"0",
";",
"p",
"<",
"this",
".",
"pages",
".",
"length",
";",
"++",
"p",
")",
"{",
"var",
"cal",
"=",
"this",
".",
"pages",
"[",
"p",
"]",
"... | Calls the render function of all child calendars within the group.
@method render | [
"Calls",
"the",
"render",
"function",
"of",
"all",
"child",
"calendars",
"within",
"the",
"group",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5532-L5539 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function(cellIndex) {
for (var p=0;p<this.pages.length;++p) {
var cal = this.pages[p];
cal.deselectCell(cellIndex);
}
return this.getSelectedDates();
} | javascript | function(cellIndex) {
for (var p=0;p<this.pages.length;++p) {
var cal = this.pages[p];
cal.deselectCell(cellIndex);
}
return this.getSelectedDates();
} | [
"function",
"(",
"cellIndex",
")",
"{",
"for",
"(",
"var",
"p",
"=",
"0",
";",
"p",
"<",
"this",
".",
"pages",
".",
"length",
";",
"++",
"p",
")",
"{",
"var",
"cal",
"=",
"this",
".",
"pages",
"[",
"p",
"]",
";",
"cal",
".",
"deselectCell",
"... | Deselects dates in the CalendarGroup based on the cell index provided. This method is used to select cells without having to do a full render. The selected style is applied to the cells directly.
deselectCell will deselect the cell at the specified index on each displayed Calendar page.
@method deselectCell
@param {Nu... | [
"Deselects",
"dates",
"in",
"the",
"CalendarGroup",
"based",
"on",
"the",
"cell",
"index",
"provided",
".",
"This",
"method",
"is",
"used",
"to",
"select",
"cells",
"without",
"having",
"to",
"do",
"a",
"full",
"render",
".",
"The",
"selected",
"style",
"i... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5622-L5628 | train | |
neyric/webhookit | public/javascripts/yui/calendar/calendar.js | function() {
for (var p=0;p<this.pages.length;++p) {
var cal = this.pages[p];
cal.clear();
}
this.cfg.setProperty(DEF_CFG.SELECTED.key, []);
this.cfg.setProperty(DEF_CFG.PAGEDATE.key, new Date(this.pages[0].today.getTime()));
this.render();
} | javascript | function() {
for (var p=0;p<this.pages.length;++p) {
var cal = this.pages[p];
cal.clear();
}
this.cfg.setProperty(DEF_CFG.SELECTED.key, []);
this.cfg.setProperty(DEF_CFG.PAGEDATE.key, new Date(this.pages[0].today.getTime()));
this.render();
} | [
"function",
"(",
")",
"{",
"for",
"(",
"var",
"p",
"=",
"0",
";",
"p",
"<",
"this",
".",
"pages",
".",
"length",
";",
"++",
"p",
")",
"{",
"var",
"cal",
"=",
"this",
".",
"pages",
"[",
"p",
"]",
";",
"cal",
".",
"clear",
"(",
")",
";",
"}... | Clears the selected dates in the current calendar widget and sets the calendar
to the current month and year.
@method clear | [
"Clears",
"the",
"selected",
"dates",
"in",
"the",
"current",
"calendar",
"widget",
"and",
"sets",
"the",
"calendar",
"to",
"the",
"current",
"month",
"and",
"year",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/calendar/calendar.js#L5647-L5656 | train |
Subsets and Splits
SQL Console for semeru/code-text-javascript
Retrieves 20,000 non-null code samples labeled as JavaScript, providing a basic overview of the dataset.