Lines Matching refs:ctx

4222 			var ctx, tree;
4228 ctx = obj;
4232 ctx = { variable
4242 ctx = { variable
4253 $.extend(ctx, extra);
4255 return ctx;
4265 var ctx = this._makeHookContext(contextObject),
4271 args.unshift(ctx);
5054 opts.callback = function (ctx, node, status) { argument
5056 callback.call(ctx, node, status);
5058 dfd.notifyWith(ctx, [{ node: node, status: status }]);
5327 var ctx = this._makeHookContext(node, originalEvent, extra),
5328 res = this.widget._trigger(type, originalEvent, ctx);
5329 if (res !== false && ctx.result !== undefined) {
5330 return ctx.result;
5337 var ctx = this._makeHookContext(this, originalEvent, extra),
5338 res = this.widget._trigger(type, originalEvent, ctx);
5340 if (res !== false && ctx.result !== undefined) {
5341 return ctx.result;
5515 nodeClick: function (ctx) { argument
5519 targetType = ctx.targetType,
5520 node = ctx.node;
5537 this._callHook("nodeToggleExpanded", ctx);
5540 this._callHook("nodeToggleSelected", ctx);
5541 if (ctx.options.focusOnSelect) {
5543 this._callHook("nodeSetFocus", ctx, true);
5550 switch (ctx.options.clickFolderMode) {
5563 this.nodeSetFocus(ctx);
5564 this._callHook("nodeSetActive", ctx, true);
5571 this._callHook("nodeToggleExpanded", ctx);
5585 nodeCollapseSiblings: function (ctx, callOpts) { argument
5590 node = ctx.node;
5609 nodeDblclick: function (ctx) { argument
5612 ctx.targetType === "title" &&
5613 ctx.options.clickFolderMode === 4
5617 this._callHook("nodeToggleExpanded", ctx);
5620 if (ctx.targetType === "title") {
5621 ctx.originalEvent.preventDefault();
5629 nodeKeydown: function (ctx) { argument
5635 event = ctx.originalEvent,
5636 node = ctx.node,
5637 tree = ctx.tree,
5638 opts = ctx.options,
5666 node = ctx.node = this.focusNode;
5697 tree.nodeSetExpanded(ctx, true);
5700 tree.nodeSetExpanded(ctx, false);
5704 tree._triggerNodeEvent("clickPaging", ctx, event);
5709 tree.nodeToggleSelected(ctx);
5711 tree.nodeSetActive(ctx, true);
5715 tree.nodeSetActive(ctx, true);
5751 nodeLoadChildren: function (ctx, source) { argument
5757 tree = ctx.tree,
5758 node = ctx.node,
5765 source = source.call(tree, { type: "source" }, ctx);
5777 ajax = $.extend({}, ctx.options.ajax, source);
5840 tree.nodeSetStatus(ctx, "loading");
5885 if (ctx.options.postProcess) {
5895 ctx,
5896 ctx.originalEvent,
5941 ctx.options.enableAspx
5945 if (ctx.options.enableAspx === 42) {
5977 tree.nodeSetStatus(ctx, "ok");
6017 ctx
6081 ctx,
6098 nodeLoadKeyPath: function (ctx, keyPathList) { argument
6107 nodeRemoveChild: function (ctx, childNode) { argument
6109 node = ctx.node,
6111 subCtx = $.extend({}, ctx, { node: childNode }),
6118 return this.nodeRemoveChildren(ctx);
6152 nodeRemoveChildMarkup: function (ctx) { argument
6153 var node = ctx.node;
6172 nodeRemoveChildren: function (ctx) { argument
6174 tree = ctx.tree,
6175 node = ctx.node,
6190 this.nodeRemoveChildMarkup(ctx);
6208 this.nodeRenderStatus(ctx);
6213 nodeRemoveMarkup: function (ctx) { argument
6214 var node = ctx.node;
6221 this.nodeRemoveChildMarkup(ctx);
6253 nodeRender: function (ctx, force, deep, collapsed, _recursive) { argument
6270 node = ctx.node,
6271 tree = ctx.tree,
6272 opts = ctx.options,
6312 this.nodeRemoveMarkup(ctx);
6318 this.nodeRenderStatus(ctx);
6336 this.nodeRenderTitle(ctx);
6343 ctx
6349 opts.renderNode.call(tree, { type: "renderNode" }, ctx);
6378 subCtx = $.extend({}, ctx, { node: children[i] });
6418 this.nodeRemoveChildMarkup(ctx);
6441 nodeRenderTitle: function (ctx, title) { argument
6451 node = ctx.node,
6452 tree = ctx.tree,
6453 opts = ctx.options,
6609 ctx
6642 this.nodeRenderStatus(ctx);
6644 ctx.$title = $(">span.fancytree-title", node.span);
6649 ctx
6656 nodeRenderStatus: function (ctx) { argument
6659 node = ctx.node,
6660 tree = ctx.tree,
6661 opts = ctx.options,
6780 nodeSetActive: function (ctx, flag, callOpts) { argument
6784 node = ctx.node,
6785 tree = ctx.tree,
6786 opts = ctx.options,
6803 ctx.originalEvent &&
6804 $(ctx.originalEvent.target).is("a,:checkbox")
6815 ctx.originalEvent
6827 subCtx = $.extend({}, ctx, { node: tree.activeNode });
6842 tree.nodeRenderStatus(ctx);
6844 tree.nodeSetFocus(ctx);
6850 ctx.originalEvent
6859 this.nodeRenderStatus(ctx);
6861 ctx.tree._triggerNodeEvent(
6864 ctx.originalEvent
6878 nodeSetExpanded: function (ctx, flag, callOpts) { argument
6886 node = ctx.node,
6887 tree = ctx.tree,
6888 opts = ctx.options,
6920 ctx.originalEvent
6967 ctx.tree._triggerNodeEvent(
6969 ctx
6975 ctx.tree._triggerNodeEvent(
6977 ctx
6992 ctx,
6997 tree._callHook("nodeRender", ctx, false, false, true);
7114 nodeSetFocus: function (ctx, flag) { argument
7117 tree = ctx.tree,
7118 node = ctx.node,
7121 isInput = ctx.originalEvent
7122 ? $(ctx.originalEvent.target).is(":input")
7134 ctx2 = $.extend({}, ctx, { node: tree.focusNode });
7143 this._callHook("treeSetFocus", ctx, true, {
7166 this._triggerNodeEvent("focus", ctx);
7187 this._callHook("nodeRenderStatus", ctx);
7200 nodeSetSelected: function (ctx, flag, callOpts) { argument
7202 var node = ctx.node,
7203 tree = ctx.tree,
7204 opts = ctx.options,
7238 ctx.originalEvent
7266 this.nodeRenderStatus(ctx);
7269 tree._triggerNodeEvent("select", ctx);
7280 nodeSetStatus: function (ctx, status, message, details) { argument
7281 var node = ctx.node,
7282 tree = ctx.tree;
7302 ctx,
7320 ctx,
7392 nodeToggleExpanded: function (ctx) { argument
7393 return this.nodeSetExpanded(ctx, !ctx.node.expanded);
7398 nodeToggleSelected: function (ctx) { argument
7399 var node = ctx.node,
7414 return this.nodeSetSelected(ctx, flag);
7419 treeClear: function (ctx) { argument
7420 var tree = ctx.tree;
7426 tree._callHook("treeStructureChanged", ctx, "clear");
7431 treeCreate: function (ctx) {}, argument
7435 treeDestroy: function (ctx) { argument
7444 treeInit: function (ctx) { argument
7445 var tree = ctx.tree,
7481 this.treeLoad(ctx);
7487 treeLoad: function (ctx, source) { argument
7491 tree = ctx.tree,
7492 $container = ctx.widget.element,
7495 rootCtx = $.extend({}, ctx, { node: this.rootNode });
7498 this.treeClear(ctx);
7578 ctx,
7582 if (ctx.options.selectMode === 3) {
7601 treeRegisterNode: function (ctx, add, node) { argument
7602 ctx.tree._callHook(
7604 ctx,
7612 treeSetFocus: function (ctx, flag, callOpts) { argument
7651 treeSetOption: function (ctx, key, value) { argument
7652 var tree = ctx.tree,
7727 treeStructureChanged: function (ctx, type) {}, argument
8070 ctx = tree._makeHookContext(node || tree, event),
8089 res = tree._callHook("nodeKeydown", ctx);
8114 var ctx,
8124 ctx = tree._makeHookContext(node, event);
8130 ctx.targetType = et.type;
8135 ctx,
8142 ctx,
8146 : tree._callHook("nodeClick", ctx);
8148 ctx.targetType = et.type;
8151 ctx,
8155 : tree._callHook("nodeDblclick", ctx);
8277 debounce: function (timeout, fn, invokeAsap, ctx) { argument
8280 ctx = invokeAsap;
8285 ctx = ctx || this;
8287 invokeAsap && !timer && fn.apply(ctx, args);
8291 invokeAsap || fn.apply(ctx, args);
8521 var ctx,
8528 ctx = { variable
8535 res = treeOpt.call(tree, { type: optionName }, ctx);
9019 treeInit: function (ctx) { argument
9021 opts = ctx.options,
9022 extOpts = ctx.options.childcounter;
9034 treeDestroy: function (ctx) { argument
9039 nodeRenderTitle: function (ctx, title) { argument
9040 var node = ctx.node,
9041 extOpts = ctx.options.childcounter,
9049 this._super(ctx, title);
9064 nodeSetExpanded: function (ctx, flag, callOpts) { argument
9065 var tree = ctx.tree,
9066 node = ctx.node;
9070 tree.nodeRenderTitle(ctx);
9453 treeCreate: function (ctx) { argument
9455 ctx.tree.refMap = {};
9456 ctx.tree.keyMap = {};
9458 treeInit: function (ctx) { argument
9460 _assert(ctx.options.defaultKey == null);
9462 ctx.options.defaultKey = function (node) { method
9468 treeClear: function (ctx) { argument
9469 ctx.tree.refMap = {};
9470 ctx.tree.keyMap = {};
9473 treeRegisterNode: function (ctx, add, node) { argument
9476 tree = ctx.tree,
9485 return this._super(ctx, add, node);
9511 ctx.options.clones.highlightClones
9544 ctx.options.clones.highlightClones
9554 return this._super(ctx, add, node);
9556 nodeRenderStatus: function (ctx) { argument
9559 node = ctx.node;
9561 res = this._super(ctx);
9563 if (ctx.options.clones.highlightClones) {
9564 $span = $(node[ctx.tree.statusClassPropName]);
9573 nodeSetActive: function (ctx, flag, callOpts) { argument
9575 scpn = ctx.tree.statusClassPropName,
9576 node = ctx.node;
9580 if (ctx.options.clones.highlightActiveClones && node.isClone()) {
10662 treeInit: function (ctx) { argument
10664 tree = ctx.tree,
10665 opts = ctx.options,
10687 ctx.options,
11081 treeInit: function (ctx) { argument
11082 var tree = ctx.tree;
11098 nodeClick: function (ctx) { argument
11099 var eventStr = $.ui.fancytree.eventToString(ctx.originalEvent),
11100 triggerStart = ctx.options.edit.triggerStart;
11106 if (ctx.originalEvent.shiftKey) {
11107 ctx.node.editStart();
11117 ctx.node.isActive() &&
11118 !ctx.node.isEditing() &&
11119 $(ctx.originalEvent.target).hasClass("fancytree-title")
11121 ctx.node.editStart();
11127 nodeDblclick: function (ctx) { argument
11128 if ($.inArray("dblclick", ctx.options.edit.triggerStart) >= 0) {
11129 ctx.node.editStart();
11134 nodeKeydown: function (ctx) { argument
11135 switch (ctx.originalEvent.which) {
11137 if ($.inArray("f2", ctx.options.edit.triggerStart) >= 0) {
11138 ctx.node.editStart();
11144 $.inArray("mac+enter", ctx.options.edit.triggerStart) >=
11148 ctx.node.editStart();
11617 nodeLoadChildren: function (ctx, source) { argument
11618 var tree = ctx.tree;
11624 ctx.options.filter.autoApply
11630 nodeSetExpanded: function (ctx, flag, callOpts) { argument
11631 var node = ctx.node;
11637 ctx.options.filter.hideExpandedCounter &&
11644 nodeRenderStatus: function (ctx) { argument
11647 node = ctx.node,
11648 tree = ctx.tree,
11649 opts = ctx.options.filter,
11652 enhanceTitle = ctx.options.enhanceTitle,
11653 escapeTitles = ctx.options.escapeTitles;
11655 res = this._super(ctx);
11933 treeInit: function (ctx) { argument
11934 var tree = ctx.tree,
11935 opts = ctx.options.glyph;
11949 nodeRenderStatus: function (ctx) { argument
11954 node = ctx.node,
11956 opts = ctx.options.glyph;
11958 res = this._super(ctx);
12029 nodeSetStatus: function (ctx, status, message, details) { argument
12032 opts = ctx.options.glyph,
12033 node = ctx.node;
12204 treeInit: function (ctx) { argument
12218 ctx2 = ctx.tree._makeHookContext(node, event);
12219 ctx.tree._callHook("nodeSetActive", ctx2, true);
12223 nodeSetActive: function (ctx, flag, callOpts) { argument
12225 opts = ctx.options.gridnav,
12226 node = ctx.node,
12227 event = ctx.originalEvent || {},
12235 if (ctx.options.titlesTabbable) {
12241 ctx.tree.$container.attr("tabindex", "-1");
12251 nodeKeydown: function (ctx) { argument
12255 opts = ctx.options.gridnav,
12256 event = ctx.originalEvent,
12338 treeInit: function (ctx) { argument
12341 if (ctx.options.selectMode === 1) {
12347 nodeClick: function (ctx) { argument
12349 tree = ctx.tree,
12350 node = ctx.node,
12352 isCbClick = ctx.targetType === "checkbox",
12353 isExpanderClick = ctx.targetType === "expander",
12354 eventStr = $.ui.fancytree.eventToString(ctx.originalEvent);
12391 nodeKeydown: function (ctx) { argument
12392 var tree = ctx.tree,
12393 node = ctx.node,
12394 event = ctx.originalEvent,
12697 treeInit: function (ctx) { argument
12698 var tree = ctx.tree,
12699 opts = ctx.options,
12845 nodeSetActive: function (ctx, flag, callOpts) { argument
12860 nodeSetExpanded: function (ctx, flag, callOpts) { argument
12862 node = ctx.node,
12873 nodeSetFocus: function (ctx, flag) { argument
12888 nodeSetSelected: function (ctx, flag, callOpts) { argument
12891 tree = ctx.tree,
12892 node = ctx.node,
12907 ctx.options.persist.cookieDelimiter
13024 treeInit: function (ctx) { argument
13029 tree = ctx.tree,
13030 opts = ctx.options,
13145 nodeRemoveChildMarkup: function (ctx) { argument
13146 var node = ctx.node;
13155 nodeRemoveMarkup: function (ctx) { argument
13156 var node = ctx.node;
13162 this.nodeRemoveChildMarkup(ctx);
13165 nodeRender: function (ctx, force, deep, collapsed, _recursive) { argument
13174 tree = ctx.tree,
13175 node = ctx.node,
13176 opts = ctx.options,
13184 ctx.hasCollapsedParents = node.parent && !node.parent.expanded;
13189 this.nodeRemoveMarkup(ctx);
13194 this.nodeRenderTitle(ctx); // triggers renderColumns()
13197 this.nodeRenderStatus(ctx);
13200 if (ctx.hasCollapsedParents && !deep) {
13218 } else if (deep && ctx.hasCollapsedParents) {
13243 this.nodeRenderTitle(ctx);
13247 opts.createNode.call(tree, { type: "createNode" }, ctx);
13254 opts.renderNode.call(tree, { type: "renderNode" }, ctx);
13261 subCtx = $.extend({}, ctx, { node: children[i] });
13297 nodeRenderTitle: function (ctx, title) { argument
13300 tree = ctx.tree,
13301 node = ctx.node,
13302 opts = ctx.options,
13305 res = this._super(ctx, title);
13323 this.nodeRenderStatus(ctx);
13331 ctx
13344 opts.renderColumns.call(tree, { type: "renderColumns" }, ctx);
13348 nodeRenderStatus: function (ctx) { argument
13350 node = ctx.node,
13351 opts = ctx.options;
13353 this._super(ctx);
13365 nodeSetExpanded: function (ctx, flag, callOpts) { argument
13369 if ((ctx.node.expanded && flag) || (!ctx.node.expanded && !flag)) {
13387 setChildRowVisibility(ctx.node, flag);
13390 ctx.options.autoScroll &&
13392 ctx.node.hasChildren()
13395 ctx.node
13397 .scrollIntoView(true, { topNode: ctx.node })
13400 ctx.tree._triggerNodeEvent(
13402 ctx
13405 dfd.resolveWith(ctx.node);
13409 ctx.tree._triggerNodeEvent(
13411 ctx
13414 dfd.resolveWith(ctx.node);
13418 ctx.tree._triggerNodeEvent(
13420 ctx
13423 dfd.rejectWith(ctx.node);
13427 this._super(ctx, flag, subOpts)
13436 nodeSetStatus: function (ctx, status, message, details) { argument
13438 var node = ctx.node,
13446 treeClear: function (ctx) { argument
13450 treeDestroy: function (ctx) { argument
13518 treeInit: function (ctx) { argument
13519 var $el = ctx.widget.element,
13520 opts = ctx.options.themeroller;
13546 treeDestroy: function (ctx) { argument
13548 ctx.widget.element.removeClass(
13552 nodeRenderStatus: function (ctx) { argument
13554 node = ctx.node,
13556 opts = ctx.options.themeroller;
13558 this._super(ctx);
13746 treeCreate: function (ctx) { argument
13756 instOpts = ctx.options.wide,
13760 ).appendTo(ctx.tree.$container),
13792 (ctx.options.checkbox ? 1 : 0) +
13793 (ctx.options.icon === false ? 0 : 1)) *
13812 treeDestroy: function (ctx) { argument
13817 nodeRenderStatus: function (ctx) { argument
13821 node = ctx.node,
13824 res = this._super(ctx);