Lines Matching refs:ctx
2761 var ctx, tree;
2767 ctx = obj;
2771 ctx = { variable
2781 ctx = { variable
2792 $.extend(ctx, extra);
2794 return ctx;
2804 var ctx = this._makeHookContext(contextObject),
2810 args.unshift(ctx);
3593 opts.callback = function (ctx, node, status) { argument
3595 callback.call(ctx, node, status);
3597 dfd.notifyWith(ctx, [{ node: node, status: status }]);
3866 var ctx = this._makeHookContext(node, originalEvent, extra),
3867 res = this.widget._trigger(type, originalEvent, ctx);
3868 if (res !== false && ctx.result !== undefined) {
3869 return ctx.result;
3876 var ctx = this._makeHookContext(this, originalEvent, extra),
3877 res = this.widget._trigger(type, originalEvent, ctx);
3879 if (res !== false && ctx.result !== undefined) {
3880 return ctx.result;
4054 nodeClick: function (ctx) { argument
4058 targetType = ctx.targetType,
4059 node = ctx.node;
4076 this._callHook("nodeToggleExpanded", ctx);
4079 this._callHook("nodeToggleSelected", ctx);
4080 if (ctx.options.focusOnSelect) {
4082 this._callHook("nodeSetFocus", ctx, true);
4089 switch (ctx.options.clickFolderMode) {
4102 this.nodeSetFocus(ctx);
4103 this._callHook("nodeSetActive", ctx, true);
4110 this._callHook("nodeToggleExpanded", ctx);
4124 nodeCollapseSiblings: function (ctx, callOpts) { argument
4129 node = ctx.node;
4148 nodeDblclick: function (ctx) { argument
4151 ctx.targetType === "title" &&
4152 ctx.options.clickFolderMode === 4
4156 this._callHook("nodeToggleExpanded", ctx);
4159 if (ctx.targetType === "title") {
4160 ctx.originalEvent.preventDefault();
4168 nodeKeydown: function (ctx) { argument
4174 event = ctx.originalEvent,
4175 node = ctx.node,
4176 tree = ctx.tree,
4177 opts = ctx.options,
4205 node = ctx.node = this.focusNode;
4236 tree.nodeSetExpanded(ctx, true);
4239 tree.nodeSetExpanded(ctx, false);
4243 tree._triggerNodeEvent("clickPaging", ctx, event);
4248 tree.nodeToggleSelected(ctx);
4250 tree.nodeSetActive(ctx, true);
4254 tree.nodeSetActive(ctx, true);
4290 nodeLoadChildren: function (ctx, source) { argument
4296 tree = ctx.tree,
4297 node = ctx.node,
4304 source = source.call(tree, { type: "source" }, ctx);
4316 ajax = $.extend({}, ctx.options.ajax, source);
4379 tree.nodeSetStatus(ctx, "loading");
4424 if (ctx.options.postProcess) {
4434 ctx,
4435 ctx.originalEvent,
4480 ctx.options.enableAspx
4484 if (ctx.options.enableAspx === 42) {
4516 tree.nodeSetStatus(ctx, "ok");
4556 ctx
4620 ctx,
4637 nodeLoadKeyPath: function (ctx, keyPathList) { argument
4646 nodeRemoveChild: function (ctx, childNode) { argument
4648 node = ctx.node,
4650 subCtx = $.extend({}, ctx, { node: childNode }),
4657 return this.nodeRemoveChildren(ctx);
4691 nodeRemoveChildMarkup: function (ctx) { argument
4692 var node = ctx.node;
4711 nodeRemoveChildren: function (ctx) { argument
4713 tree = ctx.tree,
4714 node = ctx.node,
4729 this.nodeRemoveChildMarkup(ctx);
4747 this.nodeRenderStatus(ctx);
4752 nodeRemoveMarkup: function (ctx) { argument
4753 var node = ctx.node;
4760 this.nodeRemoveChildMarkup(ctx);
4792 nodeRender: function (ctx, force, deep, collapsed, _recursive) { argument
4809 node = ctx.node,
4810 tree = ctx.tree,
4811 opts = ctx.options,
4851 this.nodeRemoveMarkup(ctx);
4857 this.nodeRenderStatus(ctx);
4875 this.nodeRenderTitle(ctx);
4882 ctx
4888 opts.renderNode.call(tree, { type: "renderNode" }, ctx);
4917 subCtx = $.extend({}, ctx, { node: children[i] });
4957 this.nodeRemoveChildMarkup(ctx);
4980 nodeRenderTitle: function (ctx, title) { argument
4990 node = ctx.node,
4991 tree = ctx.tree,
4992 opts = ctx.options,
5148 ctx
5181 this.nodeRenderStatus(ctx);
5183 ctx.$title = $(">span.fancytree-title", node.span);
5188 ctx
5195 nodeRenderStatus: function (ctx) { argument
5198 node = ctx.node,
5199 tree = ctx.tree,
5200 opts = ctx.options,
5319 nodeSetActive: function (ctx, flag, callOpts) { argument
5323 node = ctx.node,
5324 tree = ctx.tree,
5325 opts = ctx.options,
5342 ctx.originalEvent &&
5343 $(ctx.originalEvent.target).is("a,:checkbox")
5354 ctx.originalEvent
5366 subCtx = $.extend({}, ctx, { node: tree.activeNode });
5381 tree.nodeRenderStatus(ctx);
5383 tree.nodeSetFocus(ctx);
5389 ctx.originalEvent
5398 this.nodeRenderStatus(ctx);
5400 ctx.tree._triggerNodeEvent(
5403 ctx.originalEvent
5417 nodeSetExpanded: function (ctx, flag, callOpts) { argument
5425 node = ctx.node,
5426 tree = ctx.tree,
5427 opts = ctx.options,
5459 ctx.originalEvent
5506 ctx.tree._triggerNodeEvent(
5508 ctx
5514 ctx.tree._triggerNodeEvent(
5516 ctx
5531 ctx,
5536 tree._callHook("nodeRender", ctx, false, false, true);
5653 nodeSetFocus: function (ctx, flag) { argument
5656 tree = ctx.tree,
5657 node = ctx.node,
5660 isInput = ctx.originalEvent
5661 ? $(ctx.originalEvent.target).is(":input")
5673 ctx2 = $.extend({}, ctx, { node: tree.focusNode });
5682 this._callHook("treeSetFocus", ctx, true, {
5705 this._triggerNodeEvent("focus", ctx);
5726 this._callHook("nodeRenderStatus", ctx);
5739 nodeSetSelected: function (ctx, flag, callOpts) { argument
5741 var node = ctx.node,
5742 tree = ctx.tree,
5743 opts = ctx.options,
5777 ctx.originalEvent
5805 this.nodeRenderStatus(ctx);
5808 tree._triggerNodeEvent("select", ctx);
5819 nodeSetStatus: function (ctx, status, message, details) { argument
5820 var node = ctx.node,
5821 tree = ctx.tree;
5841 ctx,
5859 ctx,
5931 nodeToggleExpanded: function (ctx) { argument
5932 return this.nodeSetExpanded(ctx, !ctx.node.expanded);
5937 nodeToggleSelected: function (ctx) { argument
5938 var node = ctx.node,
5953 return this.nodeSetSelected(ctx, flag);
5958 treeClear: function (ctx) { argument
5959 var tree = ctx.tree;
5965 tree._callHook("treeStructureChanged", ctx, "clear");
5970 treeCreate: function (ctx) {}, argument
5974 treeDestroy: function (ctx) { argument
5983 treeInit: function (ctx) { argument
5984 var tree = ctx.tree,
6020 this.treeLoad(ctx);
6026 treeLoad: function (ctx, source) { argument
6030 tree = ctx.tree,
6031 $container = ctx.widget.element,
6034 rootCtx = $.extend({}, ctx, { node: this.rootNode });
6037 this.treeClear(ctx);
6117 ctx,
6121 if (ctx.options.selectMode === 3) {
6140 treeRegisterNode: function (ctx, add, node) { argument
6141 ctx.tree._callHook(
6143 ctx,
6151 treeSetFocus: function (ctx, flag, callOpts) { argument
6190 treeSetOption: function (ctx, key, value) { argument
6191 var tree = ctx.tree,
6266 treeStructureChanged: function (ctx, type) {}, argument
6609 ctx = tree._makeHookContext(node || tree, event),
6628 res = tree._callHook("nodeKeydown", ctx);
6653 var ctx,
6663 ctx = tree._makeHookContext(node, event);
6669 ctx.targetType = et.type;
6674 ctx,
6681 ctx,
6685 : tree._callHook("nodeClick", ctx);
6687 ctx.targetType = et.type;
6690 ctx,
6694 : tree._callHook("nodeDblclick", ctx);
6816 debounce: function (timeout, fn, invokeAsap, ctx) { argument
6819 ctx = invokeAsap;
6824 ctx = ctx || this;
6826 invokeAsap && !timer && fn.apply(ctx, args);
6830 invokeAsap || fn.apply(ctx, args);
7060 var ctx,
7067 ctx = { variable
7074 res = treeOpt.call(tree, { type: optionName }, ctx);