Skip to content

Commit 2799e51

Browse files
committed
[update] version 8.0.3
1 parent 9a6c6a3 commit 2799e51

16 files changed

+52
-36
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# dhtmlxGantt #
22

33
[![dhtmlx.com](https://img.shields.io/badge/made%20by-DHTMLX-blue)](https://dhtmlx.com/)
4-
[![npm: v.8.0.2](https://img.shields.io/badge/npm-v.8.0.2-blue.svg)](https://www.npmjs.com/package/dhtmlx-gantt)
4+
[![npm: v.8.0.3](https://img.shields.io/badge/npm-v.8.0.3-blue.svg)](https://www.npmjs.com/package/dhtmlx-gantt)
55
[![License: GPL v2](https://img.shields.io/badge/license-GPL%20v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
66

77
[Getting started](#getting-started) | [Features](#features) | [License](#license) | [Useful links](#links) | [Follow us](#followus)
@@ -117,7 +117,7 @@ Resource management, critical path calculation, auto scheduling, and other enhan
117117
<a name="license"></a>
118118
## License ##
119119

120-
dhtmlxGantt v.8.0.2 Standard
120+
dhtmlxGantt v.8.0.3 Standard
121121

122122
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
123123

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gantt",
3-
"version": "8.0.2",
3+
"version": "8.0.3",
44
"homepage": "https://dhtmlx.com/docs/products/dhtmlxGantt/",
55
"description": "An open source JavaScript Gantt chart that helps you illustrate a project schedule in a nice-looking chart.",
66
"main": [

codebase/dhtmlxgantt.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for dhtmlxGantt 8.0.2
1+
// Type definitions for dhtmlxGantt 8.0.3
22
// Project: https://dhtmlx.com/docs/products/dhtmlxGantt
33

44
type GanttCallback = (...args: any[]) => any;

codebase/dhtmlxgantt.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/dhtmlxgantt.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/sources/dhtmlxgantt.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
@license
33
4-
dhtmlxGantt v.8.0.2 Standard
4+
dhtmlxGantt v.8.0.3 Standard
55
66
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
77

codebase/sources/dhtmlxgantt.js

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
@license
33

4-
dhtmlxGantt v.8.0.2 Standard
4+
dhtmlxGantt v.8.0.3 Standard
55

66
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
77

@@ -12426,12 +12426,13 @@ TreeDataStore.prototype = utils.mixin({
1242612426
},
1242712427
getBranchIndex: function getBranchIndex(id) {
1242812428
var branch = this.getChildren(this.getParent(id));
12429+
var index = branch.indexOf(id + "");
1242912430

12430-
for (var i = 0; i < branch.length; i++) {
12431-
if (branch[i] == id) return i;
12431+
if (index == -1) {
12432+
index = branch.indexOf(+id);
1243212433
}
1243312434

12434-
return -1;
12435+
return index;
1243512436
},
1243612437
hasChild: function hasChild(id) {
1243712438
var branch = this._branches[id];
@@ -12626,14 +12627,7 @@ TreeDataStore.prototype = utils.mixin({
1262612627
var pid = parent === undefined ? this.getParent(item) : parent;
1262712628
if (!this.hasChild(pid)) this._branches[pid] = powerArray.$create();
1262812629
var branch = this.getChildren(pid);
12629-
var added_already = false;
12630-
12631-
for (var i = 0, length = branch.length; i < length; i++) {
12632-
if (branch[i] == item.id) {
12633-
added_already = true;
12634-
break;
12635-
}
12636-
}
12630+
var added_already = branch.indexOf(item.id + "") > -1 || branch.indexOf(+item.id) > -1;
1263712631

1263812632
if (!added_already) {
1263912633
if (index * 1 == index) {
@@ -12667,11 +12661,21 @@ TreeDataStore.prototype = utils.mixin({
1266712661

1266812662
if (branch && node !== undefined) {
1266912663
var newbranch = powerArray.$create();
12664+
var index = branch.indexOf(old_id + "");
1267012665

12671-
for (var i = 0; i < branch.length; i++) {
12672-
if (branch[i] != old_id) newbranch.push(branch[i]);else if (new_id) newbranch.push(new_id);
12666+
if (index == -1 && !isNaN(+old_id)) {
12667+
index = branch.indexOf(+old_id);
1267312668
}
1267412669

12670+
if (index > -1) {
12671+
if (new_id) {
12672+
branch.splice(index, 1, new_id);
12673+
} else {
12674+
branch.splice(index, 1);
12675+
}
12676+
}
12677+
12678+
newbranch = branch;
1267512679
this._branches[node] = newbranch;
1267612680
}
1267712681
},
@@ -12717,8 +12721,11 @@ TreeDataStore.prototype = utils.mixin({
1271712721
},
1271812722
filter: function filter(rule) {
1271912723
for (var i in this.pull) {
12720-
if (this.pull[i].$rendered_parent !== this.getParent(this.pull[i])) {
12721-
this._move_branch(this.pull[i], this.pull[i].$rendered_parent, this.getParent(this.pull[i]));
12724+
var renderedParent = this.pull[i].$rendered_parent;
12725+
var actualParent = this.getParent(this.pull[i]);
12726+
12727+
if (renderedParent !== actualParent) {
12728+
this._move_branch(this.pull[i], renderedParent, actualParent);
1272212729
}
1272312730
}
1272412731

@@ -13079,8 +13086,11 @@ var createDatastoreFacade = function createDatastoreFacade() {
1307913086
id = replaceValidZeroId(id, this.config.root_id);
1308013087

1308113088
if (id) {
13082-
var oldSelectId = this.getSelectedId();
13083-
store.select(id); // GS-730. Split task is not included in the tree,
13089+
var oldSelectId = this.getSelectedId(); // Don't repaint the resource panel as the data didn't change
13090+
13091+
store._skipResourceRepaint = true;
13092+
store.select(id);
13093+
store._skipResourceRepaint = false; // GS-730. Split task is not included in the tree,
1308413094
// so the datastore renderer will think that the task is not visible
1308513095

1308613096
if (oldSelectId && store.pull[oldSelectId].$split_subtask && oldSelectId != id) {
@@ -41644,7 +41654,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4164441654

4164541655
function DHXGantt() {
4164641656
this.constants = __webpack_require__(/*! ../constants */ "./sources/constants/index.js");
41647-
this.version = "8.0.2";
41657+
this.version = "8.0.3";
4164841658
this.license = "gpl";
4164941659
this.templates = {};
4165041660
this.ext = {};

codebase/sources/skins/dhtmlxgantt_broadway.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
@license
33
4-
dhtmlxGantt v.8.0.2 Standard
4+
dhtmlxGantt v.8.0.3 Standard
55
66
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
77

codebase/sources/skins/dhtmlxgantt_contrast_black.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
@license
33
4-
dhtmlxGantt v.8.0.2 Standard
4+
dhtmlxGantt v.8.0.3 Standard
55
66
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
77

codebase/sources/skins/dhtmlxgantt_contrast_white.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
@license
33
4-
dhtmlxGantt v.8.0.2 Standard
4+
dhtmlxGantt v.8.0.3 Standard
55
66
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
77

0 commit comments

Comments
 (0)