Skip to content

Commit 1596230

Browse files
committed
#336 v2.8.0
1 parent 0a0ca19 commit 1596230

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Its easy to get it set:
139139

140140
* Clone this repo
141141
* Install lib dependencies: `npm i`
142-
* Install global dependencies: `npm i -g browserify nodemon onchange`
142+
* Install global dependencies: `npm i -g browserify nodemon onchange tsc`
143143
* Run the demo, This will start a `localhost:8080` with a live example: `npm start`.
144144
* Use `npm run watch` or do your change in `src` and restart this command refresh the changes.
145145

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsgantt-improved",
3-
"version": "2.7.3",
3+
"version": "2.8.0",
44
"description": "jsgantt-improved",
55
"main": "dist/index.js",
66
"scripts": {
@@ -14,7 +14,7 @@
1414
"webdriver": "./node_modules/protractor/bin/webdriver-manager update",
1515
"browserify": "browserify dist/index.js --standalone JSGantt > dist/jsgantt.js",
1616
"dist": "npm run build && npm run browserify && cp src/jsgantt.css dist/ && echo 'DIST finished'",
17-
"publish-npm": "npm run dist && npm publish",
17+
"publishnpm": "npm run dist && npm publish",
1818
"demo-full": "npm run dist && npm run start",
1919
"e2e-prepare": "npm i -g webdriver-manager && webdriver-manager update && ./node_modules/protractor/node_modules/webdriver-manager/bin/webdriver-manager update"
2020
},
@@ -45,4 +45,4 @@
4545
"ts-node": "^7.0.1",
4646
"typescript": "^3.0.3"
4747
}
48-
}
48+
}

src/lang.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -732,8 +732,7 @@ const id = {
732732
'sat': 'Sab'
733733
}
734734

735-
const tr =
736-
{
735+
const tr = {
737736
'format': 'Biçim',
738737
'hour': 'Saat',
739738
'day': 'Gün',
@@ -807,8 +806,7 @@ const tr =
807806
'sat': 'Cmt'
808807
}
809808

810-
const ja =
811-
{
809+
const ja = {
812810
'format': 'タイムライン表示',
813811
'hour': '時',
814812
'day': '日',
@@ -958,8 +956,7 @@ const cs = {
958956
'tooltipLoading': 'Nahrávám...'
959957
}
960958

961-
const hu =
962-
{
959+
const hu = {
963960
'format': 'Formátum',
964961
'hour': 'Óra',
965962
'day': 'Nap',

src/task.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ export const TaskItem = function (pID, pName, pStart, pEnd, pClass, pLink, pMile
204204
this.getEnd = function () {
205205
if (vEnd) return vEnd;
206206
else if (vPlanEnd) return vPlanEnd;
207-
208207
else if (vStart && vDuration) {
209208
let date = new Date(vStart)
210209
const vUnits = vDuration.split(' ')
@@ -630,11 +629,11 @@ export const processRows = function (pList, pID, pRow, pLevel, pOpen, pUseSort,
630629
if (pList[pRow].getGroupMinPlanEnd() != null && pList[pRow].getGroupMinPlanEnd() > vMaxPlanDate) {
631630
vMaxPlanDate = pList[pRow].getGroupMinPlanEnd();
632631
}
633-
if (vMinPlanDate) {
632+
if (vMinPlanDate) {
634633
pList[pRow].setPlanStart(vMinPlanDate);
635634
}
636635
if (vMaxPlanDate) {
637-
pList[pRow].setPlanEnd(vMaxPlanDate);
636+
pList[pRow].setPlanEnd(vMaxPlanDate);
638637
}
639638
pList[pRow].setNumKid(vNumKid);
640639
pList[pRow].setWeight(vWeight);

0 commit comments

Comments
 (0)