Lines Matching refs:id

5873 function Timeout(id, clearFn) {  argument
5874 this._id = id;
6070 if(value.id){
6071 ret = value.id;
6436 { view: "scrollbar", id: "scrollVer" }
6439 { view: "scrollbar", id: "scrollHor", height: 20 }
7326 id: undefined,
7343 return task.id;
7704 gantt.isTaskVisible = function (id) { argument
7705 if (!this.isTaskExists(id)) {
7709 var task = this.getTask(id);
7714 return !!(this.getGlobalTaskIndex(id) >= 0);
7790 if (!gantt.defined(item.id))
7791 item.id = gantt.uid();
7817 this.selectTask(item.id);
7819 this.showLightbox(item.id);
7822 this.showTask(item.id);
7823 this.selectTask(item.id);
7826 return item.id;
7840 this._tasks_dnd.drag.id = null;
7853 if (this._tasks_dnd && this._tasks_dnd.drag && this._tasks_dnd.drag.id == oldid) {
7854 this._tasks_dnd.drag.id = newid;
7936 var dates = this.getSubtaskDates(task.id);
8025 this.refreshTask(task.id, true);
8112 gantt.attachEvent("onBeforeTaskUpdate", function (id, task) { argument
8116 gantt.attachEvent("onBeforeTaskAdd", function (id, task) { argument
8357 DataProcessor.prototype.markRow = function (id, state, mode) { argument
8359 var invalid = this.is_invalid(id);
8364 if (this.callEvent("onRowMark", [id, state, mode, invalid])) {
8367 this.$gantt[this._methods[0]](id, str);
8372 this.$gantt[this._methods[1]](id, i, str);
8391 DataProcessor.prototype.getState = function (id) { argument
8392 return this.$gantt.getUserData(id, this.action_param);
8394 DataProcessor.prototype.is_invalid = function (id) { argument
8395 return this._invalid[id];
8397 DataProcessor.prototype.set_invalid = function (id, mode, details) { argument
8407 this._invalid[id] = mode;
8439 DataProcessor.prototype.serialize = function (data, id) { argument
8446 if (typeof id !== "undefined") {
8596 DataProcessor.prototype.afterUpdate = function (that, xml, id) { argument
8638 var action = tag.action || this.getState(id) || "updated";
8639 var sid = tag.sid || id[0];
8640 var tid = tag.tid || id[0];
8650 return this.cleanUpdate(id);
8654 return this.cleanUpdate(id);
8665 DataProcessor.prototype.cleanUpdate = function (id) { argument
8666 if (id) {
8667 for (var i = 0; i < id.length; i++) {
8668 delete this._in_progress[id[i]];
8794 var id = updates[i].getAttribute("id");
8798 _this.callEvent("insertCallback", [updates[i], id, parent_1]);
8801 _this.callEvent("updateCallback", [updates[i], id, parent_1]);
8804 _this.callEvent("deleteCallback", [updates[i], id, parent_1]);
8879 delete copy.id;
8913 output.id = updatedItem.id;
8945 tid = tag.id || tag.tid || tid;
8972 (actionPromise.id === undefined && actionPromise.tid === undefined)) {
9031 id: rowId,
9090 this._forEachUpdatedRow(function (id) { argument
9091 if (this._in_progress[id] || this.is_invalid(id)) {
9094 var row = this._getRowData(id);
9095 if (!this.callEvent("onBeforeUpdate", [id, this.getState(id), row])) {
9098 out[id] = row;
9100 this._in_progress[id] = (new Date()).valueOf();
9121 processedItem[this.action_param] = this.$gantt.getUserData(rawItem.id, this.action_param);
9124 DataProcessor.prototype.getStoredItem = function (id) { argument
9125 return this._storage.getStoredItem(id);
9127 DataProcessor.prototype._getRowData = function (id) { argument
9131 if (gantt.isTaskExists(id)) {
9132 dataItem = this.$gantt.getTask(id);
9136 if (gantt.isLinkExists(id)) {
9137 dataItem = this.$gantt.getLink(id);
9141 dataItem = this.getStoredItem(id);
9144 dataItem = { id: id }; property in DataProcessor._getRowData.dataItem
9177 function clientSideDelete(id) { argument
9180 for (var i = 0; i < updated.length && !dp._in_progress[id]; i++) {
9181 if (updated[i] === id) {
9182 if (gantt.getUserData(id, "!nativeeditor_status") === "inserted") {
9185 dp.setUpdated(id, false);
9200 this._dataProcessorHandlers.push(gantt.attachEvent("onAfterTaskAdd", function (id, item) { argument
9201 if (gantt.isTaskExists(id)) {
9203 dp.setUpdated(id, true, "inserted");
9206 … this._dataProcessorHandlers.push(gantt.attachEvent("onAfterTaskUpdate", function (id, item) { argument
9207 if (gantt.isTaskExists(id)) {
9209 dp.setUpdated(id, true);
9212 gantt._sendTaskOrder(id, item);
9216 … this._dataProcessorHandlers.push(gantt.attachEvent("onBeforeTaskDelete", function (id, item) { argument
9220 cascadeDelete[id] = {
9221 tasks: treeHelper.getSubtreeTasks(gantt, id),
9222 links: treeHelper.getSubtreeLinks(gantt, id)
9226 … this._dataProcessorHandlers.push(gantt.attachEvent("onAfterTaskDelete", function (id, item) { argument
9229 var needDbDelete = !clientSideDelete(id);
9233 if (gantt.config.cascade_delete && cascadeDelete[id]) {
9236 var cascade = cascadeDelete[id];
9250 cascadeDelete[id] = null;
9258 dp.setUpdated(id, true, "deleted");
9263 … this._dataProcessorHandlers.push(gantt.attachEvent("onAfterLinkUpdate", function (id, item) { argument
9264 if (gantt.isLinkExists(id)) {
9266 dp.setUpdated(id, true);
9269 this._dataProcessorHandlers.push(gantt.attachEvent("onAfterLinkAdd", function (id, item) { argument
9270 if (gantt.isLinkExists(id)) {
9272 dp.setUpdated(id, true, "inserted");
9275 … this._dataProcessorHandlers.push(gantt.attachEvent("onAfterLinkDelete", function (id, item) { argument
9277 var needDbDelete = !clientSideDelete(id);
9282 dp.setUpdated(id, true, "deleted");
9284 this._dataProcessorHandlers.push(gantt.attachEvent("onRowDragEnd", function (id, target) { argument
9285 gantt._sendTaskOrder(id, gantt.getTask(id));
9298 tasks[ch.id] = ch;
9307 links[link.id] = link;
9314 for (var id in tasks) {
9315 gantt.updateTask(tasks[id].id);
9317 for (var id in links) {
9318 gantt.updateLink(links[id].id);
9348 dp.attachEvent("insertCallback", function insertCallback(upd, id, parent, mode) { argument
9358 if (methods.isExist.call(gantt, id)) {
9361 data.id = id;
9364 dp.attachEvent("updateCallback", function updateCallback(upd, id) { argument
9366 if (!gantt.isTaskExists(id)) {
9369 var objData = gantt.getTask(id);
9385 gantt.updateTask(id);
9388 dp.attachEvent("deleteCallback", function deleteCallback(upd, id, parent, mode) { argument
9397 if (methods.isExist.call(gantt, id)) {
9398 methods.delete.call(gantt, id);
9427 gantt.getUserData = function (id, name) { argument
9431 if (this.userdata[id] && this.userdata[id][name]) {
9432 return this.userdata[id][name];
9436 gantt.setUserData = function (id, name, value) { argument
9440 if (!this.userdata[id]) {
9441 this.userdata[id] = {};
9443 this.userdata[id][name] = value;
9466 gantt._sendTaskOrder = function (id, item) { argument
9469 this.getTask(id).target = item.$drop_target;
9470 this._dp.setUpdated(id, true, "order");
9471 delete this.getTask(id).$drop_target;
9520 _this._storage[item.id] = utils.copy(item);
9522 this.getStoredItem = function (id) { argument
9523 return _this._storage[id] || null;
9571 if (!this.pull.hasOwnProperty(item.id)) {
9572 this.fullOrder.push(item.id);
9575 this.pull[item.id] = item;
9586 getItem: function(id){ argument
9587 return this.pull[id];
9594 updateItem: function(id, item){ argument
9595 if (!utils.defined(item)) item = this.getItem(id);
9598 if (this.callEvent("onBeforeUpdate", [item.id, item]) === false) return false;
9600 this.pull[id]=item;
9602 this.callEvent("onAfterUpdate", [item.id, item]);
9603 this.callEvent("onStoreUpdated", [item.id, item, "update"]);
9607 _removeItemInner: function(id){ argument
9610 this._updateOrder(function(){ this.$remove(id);});
9611 delete this.pull[id];
9614 removeItem: function(id){ argument
9617 var obj = this.getItem(id); //save for later event
9619 if (this.callEvent("onBeforeDelete", [obj.id, obj]) === false) return false;
9622 this._removeItemInner(id);
9626 this.callEvent("onAfterDelete", [obj.id, obj]);
9628 this.callEvent("onStoreUpdated", [obj.id, obj, "delete"]);
9636 if(this.exists(item.id)){
9637 this.silent(function(){this.updateItem(item.id, item);});
9656 this.pull[item.id]=item;
9659 if(this.$find(item.id) === -1)
9660 this.$insertAt(item.id,index);
9668 isVisible: function(id){ argument
9669 return this.visibleOrder.$find(id) > -1;
9676 if (!utils.defined(item.id))
9677 item.id = utils.uid();
9684 if (this.callEvent("onBeforeAdd", [item.id, item]) === false) return false;
9691 this.callEvent("onAfterAdd",[item.id, item]);
9693 this.callEvent("onStoreUpdated",[item.id,item,"add"]);
9695 return item.id;
9703 this.pull[newId].id = newId;
9719 exists: function(id){ argument
9720 return !!(this.pull[id]);
9724 var id = this.getIdByIndex(sindex);
9728 this.$insertAt(id,Math.min(this.length, tindex));
9738 var id = this.getIdByIndex(sindex);
9739 var obj = this.getItem(id);
9745 this.callEvent("onStoreUpdated", [obj.id, obj, "move"]);
9774 refresh: function(id, quick){ argument
9778 if (id){
9779 args = [id, this.pull[id], "paint"];
9788 if(id){
9794 id = undefined;
9802 if (id){
9803 args = [id, this.pull[id], "paint"];
9833 if(this.callEvent("onFilterItem", [item.id, item])){
9834 filteredOrder.push(item.id);
9868 getIndexById: function(id){ argument
9869 var res = this._searchVisibleOrder[id];
9888 getNext: function(id){ argument
9889 return this._getNullIfUndefined(this.visibleOrder[this.getIndexById(id) + 1]);
9891 getPrev: function(id){ argument
9892 return this._getNullIfUndefined(this.visibleOrder[this.getIndexById(id) - 1]);
9954 tasksStore.attachEvent("onFilterItem", function(id, task) { argument
9974 tasksStore.attachEvent("onAfterUpdate", function(id){ argument
9975 gantt._update_parents(id);
9980 var task = tasksStore.getItem(id);
10002 tasksStore.attachEvent("onStoreUpdated", function(id, item, action){ argument
10004 gantt._update_flags(id, null);
10029 }else if(!id){
10035 linksStore.attachEvent("onAfterAdd", function(id, link){ argument
10038 linksStore.attachEvent("onAfterUpdate", function(id, link){ argument
10041 linksStore.attachEvent("onAfterDelete", function(id, link){ argument
10045 sync_link_delete(gantt.mixin({id:oldId}, gantt.$data.linksStore.getItem(newId)));
10063 linksStore.attachEvent("onFilterItem", function(id, link){ argument
10075 return gantt.callEvent("onBeforeLinkDisplay", [id, link]);
10084 gantt.attachEvent("onBeforeTaskDelete", function(id, item){ argument
10085 deletedLinks[id] = treeHelper.getSubtreeLinks(gantt, id);
10089 gantt.attachEvent("onAfterTaskDelete", function(id, item) { argument
10090 if(deletedLinks[id]){
10092 for(var i in deletedLinks[id]){
10094 sync_link_delete(deletedLinks[id][i]);
10097 deletedLinks[id] = null;
10103 gantt.attachEvent("onAfterLinkDelete", function(id, link) { argument
10157 sourceTask.$source.push(link.id);
10162 targetTask.$target.push(link.id);
10170 if(sourceTask.$source[i] == link.id){
10179 if(targetTask.$target[i] == link.id){
10218 if (!this.defined(task.id))
10219 task.id = this.uid();
10256 var originalTask = this.$data.tasksStore.getItem(task.id);
10270 if (!this.defined(link.id))
10271 link.id = this.uid();
10293 renderItem: function(id, renderer){ argument
10297 var item = store.getItem(id);
10298 if(item && store.isVisible(id)) {
10323 store.attachEvent("onStoreUpdated", function(id, item, action){ argument
10341 store.attachEvent("onStoreUpdated", function(id, item, action){ argument
10349 if(!id || action == "move" || action == "delete"){
10354 store.callEvent("onBeforeRefreshItem", [item.id]);
10355 itemRepainter.renderItem(item.id, renderer);
10356 store.callEvent("onAfterRefreshItem", [item.id]);
10474 function unselect(id){ argument
10476 this.callEvent("onAfterUnselect", [id]);
10479 store._removeItemInner = function(id){ argument
10480 if(selectedId == id){
10481 unselect.call(this, id);
10486 if(subItem.id == selectedId){
10487 unselect.call(this, subItem.id);
10489 }, id);
10505 select: function(id){
10506 if (id){
10508 if(selectedId == id)
10512 if (!this.callEvent("onBeforeSelect", [id])) {
10519 selectedId = id;
10522 this.refresh(id);
10523 this.callEvent("onAfterSelect", [id]);
10531 isSelected: function(id){
10532 return id == selectedId;
10534 unselect: function(id){
10535 var id = id || selectedId;
10536 if(!id)
10540 this.refresh(id);
10541 unselect.call(this, id);
10591 this.attachEvent("onFilterItem", function(id, item){ argument
10632 return (item.render == "split" && this.hasChild(item.id));
10706 _removeItemInner: function(id){ argument
10711 }, id);
10713 items.push(this.getItem(id));
10718 DataStore.prototype._removeItemInner.call(this, items[i].id); argument
10725 var id = arguments[3];
10726 if (id) {
10727 if (id === sid) return;
10729 parent = this.getParent(id);
10730 tindex = this.getBranchIndex(id);
10737 var source_pid = this.getParent(source.id);
10767 }, source.id, this);
10776 getBranchIndex: function(id){ argument
10777 var branch = this.getChildren(this.getParent(id));
10779 if (branch[i] == id)
10784 hasChild: function(id){ argument
10785 return (utils.defined(this._branches[id]) && this._branches[id].length);
10787 getChildren: function(id){ argument
10788 return utils.defined(this._branches[id]) ? this._branches[id] : powerArray.$create();
10811 if (item && item.id == parentId)
10818 getSiblings: function(id){ argument
10819 if(!this.exists(id)){
10822 var parent = this.getParent(id);
10826 getNextSibling: function(id){ argument
10827 var siblings = this.getSiblings(id);
10829 if(siblings[i] == id)
10834 getPrevSibling: function(id){ argument
10835 var siblings = this.getSiblings(id);
10837 if(siblings[i] == id)
10842 getParent: function(id){ argument
10844 if(id.id !== undefined){
10845 item = id;
10847 item = this.getItem(id);
10896 if (this.hasChild(item.id))
10897 this.eachItem(code, item.id);
10922 if(branch[i] == item.id){
10930 branch.splice(index, 0, item.id);
10932 branch.push(item.id);
10941 this._replace_branch_child(old_parent, item.id);
10946 delete this._branches[item.id];
10951 }, item.id);
11001 els[i] = temp[i].id;
11016 open: function(id){ argument
11017 if(this.exists(id)){
11018 this.getItem(id).$open = true;
11019 this.callEvent("onItemOpen", [id]);
11023 close: function(id){ argument
11024 if(this.exists(id)){
11025 this.getItem(id).$open = false;
11026 this.callEvent("onItemClose", [id]);
11272 selectTask: function(id){
11276 if (id){
11278 store.select(id);
11282 unselectTask: function(id){
11284 store.unselect(id);
11286 isSelectedTask: function(id){
11287 return this.$data.tasksStore.isSelected(id);
11325 getLink : function (id) {
11326 return this.$data.linksStore.getItem(id);
11333 isLinkExists : function (id) {
11334 return this.$data.linksStore.exists(id);
11341 updateLink : function (id, data) {
11343 data = this.getLink(id);
11344 this.$data.linksStore.updateItem(id, data);
11347 deleteLink : function (id) {
11348 return this.$data.linksStore.removeItem(id);
11372 getTask: function (id) {
11373 this.assert(id, "Invalid argument for gantt.getTask");
11374 var task = this.$data.tasksStore.getItem(id);
11375 this.assert(task, "Task not found id=" + id);
11396 isTaskExists: function (id) {
11400 return this.$data.tasksStore.exists(id);
11402 updateTask: function (id, item) {
11403 if (!utils.defined(item)) item = this.getTask(id);
11404 this.$data.tasksStore.updateItem(id, item);
11405 if(this.isTaskExists(id))
11406 this.refreshTask(id);
11409 if (!utils.defined(item.id))
11410 item.id = utils.uid();
11418 deleteTask: function (id) {
11419 return this.$data.tasksStore.removeItem(id);
11427 getTaskIndex: function (id) {
11428 return this.$data.tasksStore.getBranchIndex(id);
11430 getGlobalTaskIndex: function (id) {
11431 this.assert(id, "Invalid argument");
11432 return this.$data.tasksStore.getIndexById(id);
11466 getNext: function (id) {
11467 return this.$data.tasksStore.getNext(id);
11469 getPrev: function (id) {
11470 return this.$data.tasksStore.getPrev(id);
11472 getParent: function (id) {
11473 return this.$data.tasksStore.getParent(id);
11478 getSiblings: function (id) {
11479 return this.$data.tasksStore.getSiblings(id).slice();
11481 getNextSibling: function (id) {
11482 return this.$data.tasksStore.getNextSibling(id);
11484 getPrevSibling: function (id) {
11485 return this.$data.tasksStore.getPrevSibling(id);
11488 var id = this.$data.tasksStore.getIdByIndex(index);
11489 if(this.isTaskExists(id)){
11490 return this.getTask(id);
11495 getChildren: function (id) {
11496 if(!this.hasChild(id)){
11499 return this.$data.tasksStore.getChildren(id).slice();
11502 hasChild: function (id) {
11503 return this.$data.tasksStore.hasChild(id);
11505 open: function (id) {
11506 this.$data.tasksStore.open(id);
11508 close: function (id) {
11509 this.$data.tasksStore.close(id);
11616 getTaskTop: function(id) {
11618 var res = tryCall.call(self, getTimeline, "getItemTop", [id],
11619 function(){ return tryCall.call(self, getGrid, "getItemTop", [id]);}
11634 var top = this.getTaskTop(task.id);
11684 getTaskNode: function(id) {
11689 return timeline._taskRenderer.rendered[id];
11694 getLinkNode: function(id) {
11699 return timeline._linkRenderer.rendered[id];
11741 showTask: function(id) {
11742 var pos = this.getTaskPosition(this.getTask(id));
12076 this.config.layout.id = "main";
12170 "edit": function(id) { argument
12171 if (gantt.isReadonly(gantt.getTask(id))) {
12174 gantt.showLightbox(id);
12176 "delete": function(id) { argument
12177 var task = gantt.getTask(id);
12185 if(!gantt.isTaskExists(id)){
12192 gantt.deleteTask(id, true);
12196 gantt.deleteTask(id);
12276 gantt.getTaskRowNode = function(id) { argument
12282 if (value == id) return els[i];
12904 tmpDom.innerHTML = _display(config, ev.id);
12918 tasks.unshift({id: gantt.config.root_id, text: config.root_label || ""});
12932 key: tasks[i].id,
12950 if (task.id == item_id || gantt.isChildOf(task.id, item_id) || filter(task.id, task) === false) {
13308 gantt.showLightbox = function (id) { argument
13309 if (!this.callEvent("onBeforeLightbox", [id])) return;
13311 var task = this.getTask(id);
13316 this._fill_lightbox(id, box);
13320 this.callEvent("onLightbox", [id]);
13445 sns[i].id = "area_" + this.uid();
13455 …html += "<div id='" + sns[i].id + "' class='gantt_cal_lsection'><label>" + button + this.locale.la…
13615 if (gantt.isTaskExists(task.id) && task.$new) {
13617 gantt.$data.tasksStore.removeItem(task.id);
13618 gantt._update_flags(task.id, null);
13633 this.addTask(task, task.parent, this.getTaskIndex(task.id));
13634 } else if (this.isTaskExists(task.id)) {
13635 this.mixin(this.getTask(task.id), task, true);
13636 this.refreshTask(task.id);
13637 this.updateTask(task.id);
13672 var node = document.getElementById(sns[i].id);
13742 var node = document.getElementById(section.id).nextSibling;
13751 if (data.id)
13752 gantt._lightbox_id = data.id;
13754 gantt._fill_lightbox = function (id, box) { argument
13755 var task = this.getTask(id);
13772 var header = document.getElementById(section.id);
14023 labelBlock = document.getElementById(section.id);
14025 if (!section.id || !labelBlock) continue;
14034 input.id = input.id || "input_" + gantt.uid();
14035 section.inputId = input.id;
14340 var id = firstTask ? firstTask.id : this.config.root_id;
14341 if(this.isTaskExists(id))
14342 this.showTask(id);
14376 gantt.attachEvent("onBeforeTaskDisplay", function (id, task) { argument
14553 …return "<item id='" + obj.id + "' source='" + obj.source + "' target='" + obj.target + "' type='" …
14556 …return "<task id='" + obj.id + "' parent='" + (obj.parent || "") + "' start_date='" + obj.start_da…
14595 ev.id = "project-" + ev.id;
14609 target: ev.id,
14723 messageBox.hide(text.id);
14728 messageBox.hide(text.id);
14740 messageBox.timers[text.id] = window.setTimeout(function () {
14741 messageBox.hide(text.id);
14744 messageBox.pull[text.id] = message;
14747 return text.id;
14877 function params(text, type, expire, id) { argument
14879 text = {text: text, type: type, expire: expire, id: id};
14880 text.id = text.id || utils.uid();
14920 var messageBox = function (text, type, expire, id) { argument
14949 messageBox.hide = function (id) { argument
14950 var obj = messageBox.pull[id];
14958 if (messageBox.timers[id])
14959 window.clearTimeout(messageBox.timers[id]);
14960 delete messageBox.pull[id];
15035 function checkParent(id) { argument
15036 setTaskType(id);
15037 var parent = gantt.getParent(id);
15044 function setTaskType(id) { argument
15045 id = id.id || id;
15046 var task = gantt.getTask(id);
15057 gantt.updateTask(task.id);
15063 var hasChildren = gantt.hasChild(task.id);
15094 gantt.attachEvent("onAfterTaskAdd", callIfEnabled(function(id) { argument
15096 updateParents(id);
15100 gantt.attachEvent("onAfterTaskUpdate", callIfEnabled(function(id) { argument
15102 updateParents(id);
15106 function updateAfterRemoveChild(id){ argument
15107 if (id != gantt.config.root_id && gantt.isTaskExists(id)) {
15108 updateParents(id);
15112 gantt.attachEvent("onBeforeTaskDelete", callIfEnabled(function(id, task) { argument
15113 delTaskParent = gantt.getParent(id);
15117 gantt.attachEvent("onAfterTaskDelete", callIfEnabled(function(id, task) { argument
15124 gantt.attachEvent("onRowDragStart", callIfEnabled(function(id, target, e) { argument
15125 originalRowDndParent = gantt.getParent(id);
15129 gantt.attachEvent("onRowDragEnd", callIfEnabled(function(id, target) { argument
15131 updateParents(id);
15141 gantt.attachEvent("onAfterTaskMove", callIfEnabled(function(id, parent, tindex) { argument
15147 updateParents(id);
15427 resetProjects[task.id] = task;
15489 obj.id = "gantt_"+ gantt.uid();
15495 this.attachObject(obj.id);
15502 gantt.init(obj.id, start, end);
15505 that.gridId = obj.id;
15519 obj.id = "gantt_"+gantt.uid();
15525 this.attachObject(obj.id);
15530 gantt.init(obj.id, start, end);
15692 dataProcessor.attachEvent("onBeforeUpdate", callIfEnabled(function(id, state, data){ argument
15694 dataProcessor.setUpdated(id, false);
15704 if(!placeholders.length || !gantt.isTaskExists(placeholders[0].id)){
15720 function afterEdit(id){ argument
15721 var item = gantt.getTask(id);
15730 gantt.deleteTask(item.id);
15735 newTask.id = gantt.uid();
15754 gantt.attachEvent("onAfterTaskAdd", callIfEnabled(function(id, task){ argument
15759 if(gantt.isTaskExists(p.id))
15760 gantt.deleteTask(p.id);
15790 gantt.attachEvent("onBeforeLinkAdd", function(id,link){ argument
15895 var cacheKey = resource.id + "_" + resourceProperty + "_" + scale.unit + "_" + scale.step;
15912 tasks = getTaskBy(resourceProperty, resource.id);
15991 function detachRenderedResourceLine(id, index){ argument
15992 if(renderedResourceLines[id] && renderedResourceLines[id][index] &&
15993 renderedResourceLines[id][index].parentNode
15995 renderedResourceLines[id][index].parentNode.removeChild(renderedResourceLines[id][index]);
16006 renderedResourceLines[resource.id] = {};
16018 renderedResourceLines[resource.id][columnIndex] = cell;
16043 detachRenderedResourceLine(resource.id, columnIndex);
16047 if(!renderedResourceLines[resource.id] || !renderedResourceLines[resource.id][columnIndex]){
16051 renderedResourceLines[resource.id][columnIndex] = cell;
16054 …enderedResourceLines[resource.id] && renderedResourceLines[resource.id][columnIndex] && !renderedR…
16055 node.appendChild(renderedResourceLines[resource.id][columnIndex]);
16109 function detachRenderedHistogramCell(id, index){ argument
16111 var renderedRow = renderedHistogramCells[id];
16154 var renderedElement = renderedHistogramCapacity[resource.id];
16161 capacityElement.setAttribute("data-resource-id", resource.id);
16213 renderedHistogramCells[resource.id] = {};
16214 renderedHistogramRows[resource.id] = null;
16215 renderedHistogramCapacity[resource.id] = null;
16232 renderedHistogramCells[resource.id][columnIndex] = el;
16246 renderedHistogramCapacity[resource.id] = capacityElement;
16248 renderedHistogramRows[resource.id] = row;
16271 detachRenderedHistogramCell(resource.id, columnIndex);
16275 var renderedCell = renderedHistogramCells[resource.id];
16280 renderedHistogramCells[resource.id][columnIndex] = el;
16291 renderedHistogramCapacity[resource.id] = capacityElement;
16316 result.push({task_id: task.id, resource_id:owners[i].resource_id, value:owners[i].value});
16332 selectAssignments(resourceId, task.id, assignments);
16747 var _prevSibling = gantt.getPrevSibling(ch.id);
16756 var _parent = gantt.getParent(ch.id);
17022 if (_tasks_dnd && (_tasks_dnd.drag.id || _tasks_dnd.drag.start_drag)) {
17350 removeTaskLayer: function(id){
17351 taskLayers.removeLayer(id);
17370 removeLinkLayer: function(id){
17371 linkLayers.removeLayer(id);
17433 var id = row.getAttribute(grid.$config.item_attribute);
17435 id: id,
17545 id: this._itemId,
17559 var editorState = {id: itemId, columnName: columnName}; property in AnonymousFunctioncdb5859f0100.AnonymousFunctioncdb5859f19300.create.createGridEditors.controller.startEdit.editorState
17570 this.show(editorState.id, editorState.columnName);
17582 var editorState = {id: itemId, columnName: columnName}; property in AnonymousFunctioncdb5859f0100.AnonymousFunctioncdb5859f19300.create.createGridEditors.controller.show.editorState
17591 var placeholder = _createPlaceholder(editorState.id, editorState.columnName);
17593 editor.show(editorState.id, column, editorConfig, placeholder);
17596 this._itemId = editorState.id;
17608 var itemId = state.id,
17685 this.callEvent("onEditEnd", [{id: itemId, columnName: columnName}]);
17703 id: itemId, property in AnonymousFunctioncdb5859f0100.AnonymousFunctioncdb5859f19300.create.createGridEditors.controller.save.editorState
17709 …if (this._editor.is_valid(editorState.newValue, editorState.id, editorState.columnName, this._plac…
17859 show: function (id, column, config, placeholder) { argument
17863 set_value: function (value, id, column, node) { argument
17866 get_value: function (id, column, node) { argument
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
17941 show: function (id, column, config, placeholder) { argument
17947 minValue = config.min(id, column);
17953 maxValue = config.max(id, column);
17963 set_value: function (value, id, column, node) { argument
17970 is_valid: function (value, id, column, node) { argument
17975 get_value: function (id, column, node) { argument
18017 show: function (id, column, config, placeholder) { argument
18021 set_value: function (value, id, column, node) { argument
18024 get_value: function (id, column, node) { argument
18055 show: function (id, column, config, placeholder) { argument
18062 get_value: function (id, column, node) { argument
18065 is_valid: function (value, id, column, node) { argument
18143 var selectedLinks = getSelectedLinks(task.id, predecessorCodes, config);
18147 existingLinksSearch[formatLinkKey(link)] = link.id;
18172 show: function (id, column, config, placeholder) { argument
18178 set_value: function (value, id, column, node) { argument
18181 get_value: function (id, column, node) { argument
18184 save: function (id, column, node) { argument
18185 var task = gantt.getTask(id);
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);
18236 show: function (id, column, config, placeholder) { argument
18279 show: function (id, column, config, placeholder) { argument
18335 gantt.attachEvent("onTaskClick", function (id, e) { argument
18342 if (controller.isVisible() && state.id == cell.id && state.columnName == cell.columnName) {
18345 controller.startEdit(cell.id, cell.columnName);
18361 gantt.attachEvent("onTaskDblClick", function (id, e) { argument
18470 var id = activeCell.id;
18474 if(editorState.id == id && editorState.columnName === columnName) {
18486 if (activeCell && !(activeCell.id == state.id && activeCell.columnName == state.columnName)) {
18506 gantt.attachEvent("onTaskDblClick", function(id,e){ argument
18516 gantt.attachEvent("onTaskClick", function (id, e) { argument
18524 if(controller.isVisible() && state.id == cell.id && state.columnName == cell.columnName){
18527 controller.startEdit(cell.id, cell.columnName);
18554 self.startEdit(activeCell.id, activeCell.columnName);
18581 self.startEdit(activeCell.id, activeCell.columnName);
18588 self.startEdit(activeCell.id, activeCell.columnName);
18603 if(newState.id){
18604 keyNav.focus({type:"taskCell", id: newState.id, column:newState.columnName});
18630 self.startEdit(activeCell.id, activeCell.columnName);
19020 _refreshPlaceholderOnStoreUpdate: function (id) { argument
19024 if (!store || id !== null || !this.isVisible() || !config.smart_rendering) {
19064 this._mouseDelegates.delegate("click", "gantt_close", gantt.bind(function (e, id, trg) { argument
19076 this._mouseDelegates.delegate("click", "gantt_open", gantt.bind(function (e, id, trg) { argument
19406 if(grid.$config.id == "grid") {
19425 if(grid.$config.id == "grid") {
19430 if(grid.$config.id == "grid") {
19437 this._mouseDelegates.delegate("click", "gantt_row", gantt.bind(function (e, id, trg) { argument
19439 if (id !== null) {
19440 var task = this.getTask(id);
19443 gantt.callEvent("onTaskRowClick", [id, trg]);
19447 … this._mouseDelegates.delegate("click", "gantt_grid_head_cell", gantt.bind(function (e, id, trg) { argument
19491 this._mouseDelegates.delegate("click", "gantt_add", gantt.bind(function (e, id, trg) { argument
19496 this.createTask(item, id ? id : gantt.config.root_id);
19575 var id = el.getAttribute(grid.$config.item_attribute);
19579 var task = datastore.getItem(id);
19585 if (!gantt.callEvent("onRowDragStart", [id, e.target || e.srcElement, e])) {
19599 dnd.config.id = el.getAttribute(grid.$config.item_attribute);
19603 var task = store.getItem(dnd.config.id);
19604 dnd.config.index = store.getBranchIndex(dnd.config.id);
19620 return last_item ? last_item.id : null;
19674 var item = store.getItem(dnd.config.id);
19676 var el = dnd._getTaskByY(targetY, store.getIndexById(item.id));
19680 if (el == dnd.config.id) {
19686 …return (!(store.isChildOf(over.id, item.id)) && (next.$level == item.$level || config.order_branch…
19692 if (store.getIndexById(over.id) * config.row_height + config.row_height / 2 < targetY) {
19694 var index = store.getIndexById(over.id);
19695 var nextId = store.getNext(over.id);//adds +1 when hovering over placeholder
19698 if (next.id != item.id) {
19703 if (!(store.isChildOf(item.id, over.id) && store.getChildren(over.id).length == 1))
19706 store.move(item.id, store.getBranchIndex(over.id) + 1, store.getParent(over.id));
19719 if (allowedLevel(next, item) && next.id != item.id) {
19720 store.move(item.id, -1, store.getParent(next.id));
19726 if (over.id != item.id && allowedLevel(over, item)) {
19727 if (!store.hasChild(over.id)) {
19729 store.move(item.id, -1, over.id);
19732 if (store.getIndexById(over.id) || config.row_height / 3 < targetY) return;
19736 var index = store.getIndexById(over.id),
19742 while ((!prev || prev.id == over.id) && index - shift >= 0) {
19749 if (item.id == over.id) return;
19751 if (allowedLevel(over, item) && item.id != over.id) {
19752 store.move(item.id, 0, 0, over.id);
19754 } else if (over.$level == item.$level - 1 && !store.getChildren(over.id).length) {
19755 store.move(item.id, 0, over.id);
19757 } else if (prev && (allowedLevel(prev, item)) && (item.id != prev.id)) {
19758 store.move(item.id, -1, store.getParent(prev.id));
19767 var task = store.getItem(dnd.config.id);
19771 …if (this.callEvent("onBeforeRowDragEnd", [dnd.config.id, dnd.config.parent, dnd.config.index]) ===…
19772 store.move(dnd.config.id, dnd.config.index, dnd.config.parent);
19775 this.callEvent("onRowDragEnd", [dnd.config.id, task.$drop_target]);
19824 var id = el.getAttribute(grid.$config.item_attribute);
19826 var task = datastore.getItem(id);
19832 if (!gantt.callEvent("onRowDragStart", [id, e.target || e.srcElement, e])) {
19849 dnd.config.id = el.getAttribute(grid.$config.item_attribute);
19853 var task = store.getItem(dnd.config.id);
19856 targetParent: store.getParent(task.id),
19857 targetIndex: store.getBranchIndex(task.id),
19858 targetId: task.id,
19902 result = getMultiLevelTarget(dnd.config.id, targetTaskId, relTargetPos, eventTop, store);
19904 …result = getLockedLevelTarget(dnd.config.id, targetTaskId, relTargetPos, eventTop, store, dnd.conf…
19914 …gantt.callEvent("onBeforeRowDragMove", [dnd.config.id, target.targetParent, target.targetIndex]) =…
19921 this.callEvent("onRowDragMove", [dnd.config.id, target.targetParent, target.targetIndex]);
19927 var task = store.getItem(dnd.config.id);
19935 …if (this.callEvent("onBeforeRowDragEnd", [dnd.config.id, target.targetParent, target.targetIndex])…
19938 store.move(dnd.config.id, target.targetIndex, target.targetParent);
19939 this.callEvent("onRowDragEnd", [dnd.config.id, target.targetParent, target.targetIndex]);
19941 store.refresh(task.id);
20077 var id = target.targetParent;
20078 var pos = gridToPageCoordinates({x: 0, y: grid.getItemTop(id)}, grid);
20084 markerFolder.style.height = grid.getItemHeight(id) + "px";
20108 if(store.getIndexById(child.id) !== -1)
20349 var id = view.$config ? view.$config.id : null;
20350 if(id === "main"){
20357 var id = view.$config ? view.$config.id : null;
20358 if(id === "timeline" || view.$config.bind == "task"){
20363 var id = view.$config ? view.$config.id : null;
20364 if(id === "grid" || view.$config.bind == "task"){
20445 this.$id = config.id || "c" + utils.uid();
20462 Cell.prototype.cell = function (id) { argument
21013 Layout.prototype.cell = function (id) { argument
21016 if (child.$id === id) {
21019 var sub = child.cell(id);
21025 Layout.prototype.cellIndex = function (id) { argument
21027 if (this.$cells[i].$id === id) {
22072 if(config.id){
22207 ViewLayout.prototype.cell = function (id) { argument
22208 var cell = _super.prototype.cell.call(this, id);
22285 if(prev && prev.$config && prev.$config.id === "grid"){
22289 if(next && next.$config && next.$config.id === "grid"){
22533 var id = gantt.locate(e);
22537 if (id !== null) {
22538 res = !gantt.checkEvent("onTaskClick") || gantt.callEvent("onTaskClick", [id, e]);
22544 var default_action = callEventHandlers(handlers, e, id);
22548 if (id && gantt.getTask(id) && gantt.config.select_task && !gantt.config.multiselect) {
22549 gantt.selectTask(id);
22598 function callEventHandlers(handlers, e, id){ argument
22602 var handlerResult = handlers[i].call(gantt, e, id, e.target || e.srcElement);
22612 var id = gantt.locate(e);
22616 …var res = !gantt.checkEvent("onTaskDblClick") || id === null || gantt.callEvent("onTaskDblClick", …
22618 var default_action = callEventHandlers(handlers, e, id);
22622 if (id !== null && gantt.getTask(id)) {
22624 gantt.showLightbox(id);
22632 var id = gantt.locate(e);
22634 gantt.callEvent("onMouseMove", [id, e]);
22778 getLayer: function (id) { argument
22779 return this.renderers[id];
22783 layer.id = layer.id || utils.uid();
22796 id = layer.id,
22810 this.renderers[id] = renderFactory.getRenderer(
22811 id,
22843 if(self.renderers[config.id]){
22844 self.onUpdateRequest(self.renderers[config.id]);
22852 return (config ? config.id : undefined);
22863 removeLayer: function (id) { argument
22864 if(!this.renderers[id])
22866 this.renderers[id].destructor();
22867 delete this.renderers[id];
22898 res = res && (filter_method(obj.id, obj) !== false);
22957 div.setAttribute(view.$config.link_attribute, link.id);
23398 function getRenderer(id, layer, node) { argument
23400 if (task_area_renderers[id])
23401 return task_area_renderers[id];
23427 task_area_renderers[id] = {
23433 this.remove_item(item.id);
23457 this.rendered = task_area_pulls[id] = {};
23509 var itemNode = this.rendered[item.id];
23512 this.hide(item.id);
23533 if (this.rendered[item.id]) {
23534 this.remove_item(item.id);
23539 if (this.rendered[item.id] && this.rendered[item.id].parentNode) {
23540 this.replace_item(item.id, node);
23544 this.rendered[item.id] = node;
23565 var dom = this.rendered[item.id];
23578 rendered: task_area_pulls[id],
23582 delete task_area_renderers[id];
23583 delete task_area_pulls[id];
23587 return task_area_renderers[id];
23662 div.setAttribute(view.$config.item_attribute, task.id);
23678 task.id,
24013 if(renderedCells[item.id][columnIndex] && renderedCells[item.id][columnIndex].parentNode){
24049 if(!renderedCells[item.id]){
24050 renderedCells[item.id] = {};
24052 if(!visibleCells[item.id]){
24053 visibleCells[item.id] = {};
24058 for(var i in visibleCells[item.id]){
24059 var index = visibleCells[item.id][i];
24062 detachRenderedCell(item.id, index);
24065 visibleCells[item.id] = {};
24070 detachRenderedCell(item.id, columnIndex);
24106 if(renderedCells[item.id][columnIndex]){
24107 visibleCells[item.id][columnIndex] = columnIndex;
24108 return renderedCells[item.id][columnIndex];
24121 renderedCells[item.id][columnIndex] = cell;
24122 visibleCells[item.id][columnIndex] = columnIndex;
24154 renderedCells[item.id] = {};
24155 visibleCells[item.id] = {};
24163 var odd = gantt.getGlobalTaskIndex(item.id) % 2 !== 0;
24168 if(store.isSelected(item.id)) {
24176 row.style.top = view.getItemTop(item.id) + "px";
24184 row.setAttribute(view.$config.item_attribute, item.id);
24263 …has_child = store.hasChild(item.id) && !(gantt.isSplitTask(item) && !gantt.config.open_split_tasks…
24285 var css = gantt.getGlobalTaskIndex(item.id) % 2 === 0 ? "" : " odd";
24296 if(store.isSelected(item.id)) {
24309 el.style.top = view.getItemTop(item.id) + "px";
24313 el.setAttribute(view.$config.item_attribute, item.id);
24351 var sub_tasks = gantt.getChildren(task.id);
24401 top: view.getItemTop(item.id),
24421 top: view.getItemTop(item.id),
24439 top: view.getItemTop(item.id),
24440 height: view.getItemHeight(item.id),
24558 return this.getRowTop(store.getIndexById(parent.id));
25049 if(timeline.$config.id == "timeline"){
25076 function _delete_link_handler(id, e) { argument
25077 if (id && this.callEvent("onLinkDblClick", [id, e])) {
25079 var link = this.getLink(id);
25083 …is.locale.labels.link + " " + this.templates.link_description(this.getLink(id)) + " " + this.local…
25087 gantt.deleteLink(id);
25094 var id = this.locate(e, this.config.link_attribute);
25095 if (id) {
25096 this.callEvent("onLinkClick", [id, e]);
25110 … this._mouseDelegates.delegate("doubleclick", "gantt_task_link", gantt.bind(function (e, id, trg) { argument
25111 var id = this.locate(e, gantt.config.link_attribute);
25112 _delete_link_handler.call(this, id, e);
25115 …this._mouseDelegates.delegate("doubleclick", "gantt_link_point", gantt.bind(function (e, id, trg) { argument
25116 var id = this.locate(e),
25117 task = this.getTask(id);
25610 drag_id : this.drag ? this.drag.id : undefined,
25647 id: null, property in AnonymousFunctioncdb5859f0100.AnonymousFunctioncdb5859f22d00.createTaskDND.drag
25705 var task = gantt.getTask(drag.id);
25784 _update_item_on_move: function(shift, id, mode, drag, e) {
25785 var task = gantt.getTask(id);
25791 gantt.callEvent("onTaskDrag", [task.id, mode, copy, original, e]);
25793 gantt.refreshTask(id);
25812 var task = gantt.getTask(drag.id);
25819 if (selectedTasksIds.indexOf(drag.id) >= 0) {
25825 initialDrag[drag.id] = utils.copy(drag);
25833 this._update_item_on_move(shift, drag.id, drag.mode, drag, e);
25836 this._update_item_on_move(shift, childDrag.id, childDrag.mode, childDrag, e);
25840 this._update_item_on_move(shift, drag.id, drag.mode, drag, e);
25842 gantt._update_parents(drag.id);
25855 var id = gantt.locate(e);
25857 if (gantt.isTaskExists(id)) {
25858 task = gantt.getTask(id);
25885 id = gantt.locate(src);
25886 task = gantt.copy(gantt.getTask(id) || {});
25898 drag.id = id;
25987 if (taskId == drag.id) {
25993 gantt.refreshTask(task.id);
26000 gantt.updateTask(task.id);
26009 if (drag.mode && drag.id) {
26012 var task = gantt.getTask(drag.id);
26018 this._finalize_mouse_up(dragMultiple[i].id, config, dragMultiple[i], e);
26022 this._finalize_mouse_up(drag.id, config, drag, e);
26068 var id = drag.id;
26070 …ode] || !gantt.callEvent("onBeforeDrag", [id, drag.mode, e]) || !this._fireEvent("before_start", d…
26074 var task = gantt.getTask(id);
26082 if (selectedTasksIds.indexOf(drag.id) >= 0) {
26086 this._addSubtasksToDragMultiple(selectedTask.id);
26089 id: selectedTask.id,
26097 this._addSubtasksToDragMultiple(task.id);
26134 this.dragMultiple[child.id] = gantt.mixin({
26135 id: child.id,
26490 this._staticBgHandler = store.attachEvent("onStoreUpdated", function(id, item, mode){ argument
26491 if(id !== null) {
26811 var y = this.getItemTop(task.id);
27011 if(!config.id && !createdViews[config.view]){
27012 config.id = config.view;
27015 if(config.id && !config.css){
27016 config.css = config.id+"_cell";
27027 view.$id = config.id || gantt.uid();
27054 function getView(id){ argument
27055 return createdViews[id];
27129 div.setAttribute("aria-selected", gantt.isSelectedTask(task.id) ? "true" : "false");
27136 if(task.id != gantt.getState().drag_id){
27156 if(gantt.hasChild(task.id)){
27357 function IsWorkTimeArgument(date, unit, task, id, calendar){ argument
27361 this.id = id;
27366 function ClosestWorkTimeArgument(date, dir, unit, task, id, calendar){ argument
27371 this.id = id;
27376 function CalculateEndDateArgument(start_date, duration, unit, step, task, id, calendar){ argument
27382 this.id = id;
27465 if(config.id){
27488 if (param.id) {
27547 if(config.id){
27673 var id = utils.uid();
27675 id: id + "", property in CalendarManager.createCalendar.calendar
27691 getCalendar: function (id) { argument
27692 id = id || "global";
27694 return this._calendars[id];
27742 }, task.id, this);
27750 var id = calendar.id;
27752 calendar.id = id;
27756 calendar.id = calendar.id || utils.uid();
27757 this._calendars[calendar.id] = calendar;
27760 config.worktimes[calendar.id] = calendar.worktime;
27761 return calendar.id;
27783 calendar.id = i;
27790 id: "global", property in CalendarManager.defaults.global
27797 id: "fulltime", property in CalendarManager.defaults.fulltime
28661 } else if (config.id) {
28867 gantt.attachEvent("onAfterTaskDrag", function (id) { argument
28868 var t = gantt.getTaskNode(id);
29531 z.removeEvent=function(id){ argument
29532 dhx_catch[id]=null;
29567 obj.detachEvent=function(id){ argument
29568 if (id){
29569 var list = id.split(':');//get EventName and ID
29966 res[child.id] = child;