Lines Matching refs:node

1478     for (var i = 0, node = this; node !== undefined; ++i) {
1479 nodes.push(node);
1480 node = node._parent;
5434 if (process.versions && process.versions.node) {
5435 version = process.versions.node.split(".").map(Number);
9081 DataProcessor.prototype._getXmlNodeValue = function (node) { argument
9082 if (node.firstChild) {
9083 return node.firstChild.nodeValue;
9465 gantt._delete_task = function (rowId, node) { }; // tslint:disable-line argument
10954 _replace_branch_child: function(node, old_id, new_id){ argument
10955 var branch = this.getChildren(node);
10956 if (branch && node !== undefined){
10964 this._branches[node] = newbranch;
12035 gantt.init = function(node, from, to){ argument
12046 this.init = function(node){ argument
12055 this._reinit(node);
12058 this._reinit(node);
12104 gantt._reinit = function(node){ argument
12122 this.$root = domHelpers.toNode(node);
12260 var node = domHelpers.locateAttribute(trg, targetAttribute);
12261 if(node){
12262 return node.getAttribute(targetAttribute);
12562 CheckboxControl.prototype.set_value = function(node, value, ev, sns) { argument
12563 var checkboxes = Array.prototype.slice.call(node.querySelectorAll("input[type=checkbox]"));
12565 if (!node._dhx_onchange && sns.onchange) {
12566 node.onchange = sns.onchange;
12567 node._dhx_onchange = true;
12575 CheckboxControl.prototype.get_value = function(node) { argument
12576 …return helpers.arrayMap(Array.prototype.slice.call(node.querySelectorAll("input[type=checkbox]:che…
12581 CheckboxControl.prototype.focus = function(node) { argument
12582 gantt._focus(node.querySelector("input[type=checkbox]"));
12645 ConstraintControl.prototype.set_value = function (node, value, task, config) { argument
12646 var typeSelect = node.querySelector("[data-constraint-type-select] select");
12647 var timeSelects = node.querySelectorAll("[data-constraint-time-select] select");
12667 ConstraintControl.prototype.get_value = function (node, task, config) { argument
12668 var typeSelect = node.querySelector("[data-constraint-type-select] select");
12669 var timeSelects = node.querySelectorAll("[data-constraint-time-select] select");
12683 ConstraintControl.prototype.focus = function (node) { argument
12684 gantt._focus(node.querySelector("select"));
12738 DurationControl.prototype.set_value = function(node, value, ev, config) { argument
12739 var s = node.getElementsByTagName("select");
12740 var inps = node.getElementsByTagName("input");
12743 var endspan = node.getElementsByTagName("span")[0];
12751 var start_date = _getStartDate.call(gantt, node, config);
12752 var duration = _getDuration.call(gantt, node, config);
12823 DurationControl.prototype.get_value = function(node, ev, config) { argument
12824 var startDate = _getStartDate(node, config);
12825 var duration = _getDuration(node, config);
12839 DurationControl.prototype.focus = function(node) { argument
12840 gantt._focus(node.getElementsByTagName("select")[0]);
12844 function _getStartDate(node, config) { argument
12845 var s = node.getElementsByTagName("select");
12863 function _getDuration(node, config) { argument
12864 var duration = node.getElementsByTagName("input")[1];
12902 ParentControl.prototype.set_value = function(node, value, ev, config) { argument
12906 node.onselect = null;
12907 node.parentNode.replaceChild(newOptions, node);
12996 RadioControl.prototype.set_value = function(node, value, ev, sns) { argument
13001 radio = node.querySelector("input[type=radio][value='" + value + "']") ||
13002 node.querySelector("input[type=radio][value='" + sns.default_value + "']");
13006 if (!node._dhx_onchange && sns.onchange) {
13007 node.onchange = sns.onchange;
13008 node._dhx_onchange = true;
13014 RadioControl.prototype.get_value = function(node, ev) { argument
13015 var result = node.querySelector("input[type=radio]:checked");
13020 RadioControl.prototype.focus = function(node) { argument
13021 gantt._focus(node.querySelector("input[type=radio]"));
13059 SelectControl.prototype.set_value = function(node, value, ev, sns) { argument
13060 var select = node.firstChild;
13070 SelectControl.prototype.get_value = function(node) { argument
13071 return node.firstChild.value;
13074 SelectControl.prototype.focus = function(node) { argument
13075 var a = node.firstChild;
13109 TemplateControl.prototype.set_value = function(node, value) { argument
13110 node.innerHTML = value || "";
13113 TemplateControl.prototype.get_value = function(node) { argument
13114 return node.innerHTML || "";
13149 TextareaControl.prototype.set_value = function(node, value) { argument
13150 gantt.form_blocks.textarea._get_input(node).value = value || "";
13153 TextareaControl.prototype.get_value = function(node) { argument
13154 return gantt.form_blocks.textarea._get_input(node).value;
13157 TextareaControl.prototype.focus = function(node) { argument
13158 var a = gantt.form_blocks.textarea._get_input(node);
13162 TextareaControl.prototype._get_input = function(node) { argument
13163 return node.querySelector("textarea");
13208 TimeControl.prototype.set_value = function (node, value, ev, config) { argument
13210 var s = node.getElementsByTagName("select");
13239 TimeControl.prototype.get_value = function (node, ev, config) { argument
13240 var selects = node.getElementsByTagName("select");
13264 TimeControl.prototype.focus = function (node) { argument
13265 gantt._focus(node.getElementsByTagName("select")[0]);
13672 var node = document.getElementById(sns[i].id);
13673 node = (node ? node.nextSibling : node);
13676 var res = block.get_value.call(this, node, task, sns[i]);
13742 var node = document.getElementById(section.id).nextSibling;
13746 block.set_value.call(gantt, node, value, task, section);
13749 block.focus.call(gantt, node);
13773 var node = header.nextSibling;
13778 node: node, property in gantt.getLightboxSection.result
13780 return gantt.form_blocks[section.type].get_value.call(gantt, node, (ev || {}), section);
13783 return gantt.form_blocks[section.type].set_value.call(gantt, node, value, (ev || {}), section);
13792 result.control = result.node;
13796 result.control = result.node.getElementsByTagName("select")[0];
13800 result.control = result.node.getElementsByTagName("textarea")[0];
13804 result.control = result.node.getElementsByTagName("select"); // array
13841 gantt._focus = function (node, select) { argument
13842 if (node && node.focus) {
13847 if (select && node.select) node.select();
13848 node.focus();
14165 set_value: function (node, value, task, section) { argument
14168 optional_time.disable(node, section);
14176 return duration.set_value.call(gantt, node, value, val, section);//set default value
14178 optional_time.enable(node, section);
14179 return duration.set_value.call(gantt, node, value, task, section);
14182 get_value: function (node, task, section) { argument
14186 return duration.get_value.call(gantt, node, task, section);
14189 update_block: function (node, section) { argument
14191 node.style.display = section.disabled ? "none" : "block";
14194 var button = node.previousSibling.querySelector(".gantt_custom_button_label"),
14203 disable: function (node, section) { argument
14205 optional_time.update_block(node, section);
14208 enable: function (node, section) { argument
14210 optional_time.update_block(node, section);
14483 _xmlNodeToJSON: function (node, attrs_only) { argument
14485 for (var i = 0; i < node.attributes.length; i++)
14486 t[node.attributes[i].name] = node.attributes[i].value;
14489 for (var i = 0; i < node.childNodes.length; i++) {
14490 var child = node.childNodes[i];
14495 if (!t.text) t.text = node.firstChild ? node.firstChild.nodeValue : "";
14804 var node = config.content;
14805 if (typeof node == "string")
14806 node = document.getElementById(node);
14807 if (node.style.display == 'none')
14808 node.style.display = "";
14809 box.childNodes[config.title ? 1 : 0].appendChild(node);
14900 modalBox.hide = function (node) { argument
14901 while (node && node.getAttribute && !node.getAttribute(boxAttribute))
14902 node = node.parentNode;
14903 if (node) {
14904 node.parentNode.removeChild(node);
14907 gantt.callEvent("onAfterMessagePopup", [node]);
14911 modalBox.focus = function (node) { argument
14913 var focusable = domHelpers.getFocusableNodes(node);
16032 function updateResourceLine(resource, node, timeline, viewport) { argument
16050 node.appendChild(cell);
16055 node.appendChild(renderedResourceLines[resource.id][columnIndex]);
16254 function updateResourceHistogram(resource, node, timeline, viewport) { argument
16279 node.appendChild(el);
16284 node.appendChild(renderedCell[columnIndex]);
16290 node.appendChild(capacityElement);
17424 function _getGridCellFromNode(node){ argument
17425 if(!domHelpers.isChildOf(node, grid.$grid)){
17429 var row = domHelpers.locateAttribute(node, grid.$config.item_attribute);
17430 var cell = domHelpers.locateAttribute(node, "data-column-name");
17863 set_value: function (value, id, column, node) { argument
17864 this.get_input(node).value = value;
17866 get_value: function (id, column, node) { argument
17867 return this.get_input(node).value || "";
17869 is_changed: function (value, id, column, node) { argument
17870 var currentValue = this.get_value(id, column, node);
17877 is_valid: function (value, id, column, node) { argument
17881 save: function (id, column, node) { argument
17884 get_input: function (node) { argument
17885 return node.querySelector("input");
17887 focus: function (node) { argument
17888 var input = this.get_input(node);
17963 set_value: function (value, id, column, node) { argument
17965 this.get_input(node).value = dateToStr(value);
17967 this.get_input(node).value = value;
17970 is_valid: function (value, id, column, node) { argument
17975 get_value: function (id, column, node) { argument
17978 parsed = strToDate(this.get_input(node).value || "");
18021 set_value: function (value, id, column, node) { argument
18022 this.get_input(node).value = getFormatter(column.editor).format(value);
18024 get_value: function (id, column, node) { argument
18025 return getFormatter(column.editor).parse(this.get_input(node).value || "");
18062 get_value: function (id, column, node) { argument
18063 return this.get_input(node).value || "";
18065 is_valid: function (value, id, column, node) { argument
18178 set_value: function (value, id, column, node) { argument
18179 this.get_input(node).value = formatPredecessors(value, column.editor, gantt);
18181 get_value: function (id, column, node) { argument
18182 return parseInputString((this.get_input(node).value || ""), column.editor);
18184 save: function (id, column, node) { argument
18187 var linksDiff = getLinksDiff(task, this.get_value(id, column, node), column.editor);
18203 is_changed: function (value, id, column, node) { argument
18204 var inputPredecessors = this.get_value(id, column, node);
18248 get_input: function (node) { argument
18249 return node.querySelector("select");
18465 keyNav.attachEvent("onBeforeFocus", function (node) { argument
18466 var activeCell = controller.locateCell(node);
18482 keyNav.attachEvent("onFocus", function (node) { argument
18483 var activeCell = controller.locateCell(node);
20559 Cell.prototype.$fill = function (node, parent) { argument
20560 this.$view = node;
20685 var node = view.$view;
20688 domHelpers.removeClassName(node, this._borders[i]);
20698 domHelpers.addClassName(node, css[i]);
21039 var node = this.$view;
21040 if (ind >= node.childNodes.length) {
21041 node.appendChild(view.$view);
21044 node.insertBefore(view.$view, node.childNodes[ind]);
21077 Layout.prototype.$fill = function (node, parent) { argument
21078 this.$view = node;
21080 var cells = domHelpers.getChildNodes(node, "gantt_layout_cell");
21229 var node = this.$container;
21234 node.style.width = contentSizes.width + "px";
21240 node.style.height = contentSizes.height + "px";
21906 var node = scrollbar.firstChild;
21928 node.style[property] = size + "px";
21956 var node = connectedViews[i].$view;
21957 if(domHelpers.isChildOf(targetNode, node)){
22657 function reset(node){ argument
22661 if(node){
22662 domEvents.attach(node, "click", onClick);
22663 domEvents.attach(node, "dblclick", onDoubleClick);
22664 domEvents.attach(node, "mousemove", onMouseMove);
22665 domEvents.attach(node, "contextmenu", onContextMenu);
22795 var node = layer.container,
22798 if (!node.parentNode) {
22801 container.appendChild(node);
22805 container.insertBefore(node, rel);
22807 container.appendChild(node);
22813 node
23398 function getRenderer(id, layer, node) { argument
23424 if (node)
23425 node.setAttribute(services.config().layer_attribute, true);
23429 container = container || node;
23462 container = container || node;
23467 container = container || node;
23498 container = container || node;
23527 append: function (item, node, container) { argument
23532 if (!node) {
23540 this.replace_item(item.id, node);
23542 container.appendChild(node);
23544 this.rendered[item.id] = node;
23568 this.append(item, dom, node);
23571 this.render_item(item, node);
23579 node: node, property in AnonymousFunctioncdb5859f0100.AnonymousFunctioncdb5859f20800.rendererFactory.getRenderer.task_area_renderers
24042 function renderCells(item, node, view, viewPort){ argument
24072 node.appendChild(cell);
24792 var node = domHelpers.locateClassName(e, link_landing_hover_area);
24794 if(node){
24795 shift = Math.floor(node.offsetWidth / 2);
29201 function isVisible(node){ argument
29205 var style = window.getComputedStyle(node, null);
29208 }else if(node.currentStyle){
29209 display = node.currentStyle["display"];
29210 visibility = node.currentStyle["visibility"];
29215 function hasNonNegativeTabIndex(node){ argument
29216 return !isNaN(node.getAttribute("tabindex")) && (node.getAttribute("tabindex")*1 >= 0);
29219 function hasHref(node){ argument
29221 if(canHaveHref[node.nodeName.loLowerCase()]){
29222 return !!node.getAttribute("href");
29227 function isEnabled(node){ argument
29229 if(canDisable[node.nodeName.toLowerCase()]){
29230 return !node.hasAttribute("disabled");
29253 var node = nodesArray[i];
29254 …var isValid = (hasNonNegativeTabIndex(node) || isEnabled(node) || hasHref(node)) && isVisible(nod…
29274 function getClassName(node){ argument
29275 if(!node) return "";
29277 var className = node.className || "";
29287 function addClassName(node, className){ argument
29288 if (className && node.className.indexOf(className) === -1) {
29289 node.className += " " + className;
29293 function removeClassName(node, name) { argument
29297 node.className = node.className.replace(regEx, "");
29309 function toNode(node) { argument
29310 if (typeof node === "string") {
29311 return (document.getElementById(node) || document.querySelector(node) || document.body);
29313 return node || document.body;
29317 function insert(node, newone) { argument
29320 node.appendChild(child);
29324 function remove(node) { argument
29325 if (node && node.parentNode) {
29326 node.parentNode.removeChild(node);
29330 function getChildren(node, css) { argument
29331 var ch = node.childNodes;
29405 function getRelativeEventPosition(ev, node){ argument
29407 var box = elementPosition(node);
29410 x: ev.clientX + d.scrollLeft - d.clientLeft - box.x + node.scrollLeft,
29411 y: ev.clientY + d.scrollTop - d.clientTop - box.y + node.scrollTop