Skip to content

Commit 5289404

Browse files
committed
#337 v2.8.1
1 parent 6771f06 commit 5289404

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ Its easy to get it set:
140140
* Clone this repo
141141
* Install lib dependencies: `npm i`
142142
* Install global dependencies: `npm i -g browserify nodemon onchange tsc`
143-
* Run the demo, This will start a `localhost:8080` with a live example: `npm start`.
143+
* Run the demo, This will start a `localhost:8080` with a live example: `npm start`.
144+
* You can check the demo gantt that we use for testing features at: `http://127.0.0.1:8080/docs/demo.html`
144145
* Use `npm run watch` or do your change in `src` and restart this command refresh the changes.
145146

146147
For testing use `npm run test` with e2e tests.

dist/jsgantt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3419,11 +3419,11 @@ exports.TaskItem = function (pID, pName, pStart, pEnd, pClass, pLink, pMile, pRe
34193419
vDuration = tmpPer + ' ' + ((tmpPer != 1) ? pLang['wks'] : pLang['wk']);
34203420
break;
34213421
case 'month':
3422-
tmpPer = Math.round(hours / 24 / 7 / 30);
3422+
tmpPer = Math.round(hours / 24 / 7 / 4.35);
34233423
vDuration = tmpPer + ' ' + ((tmpPer != 1) ? pLang['mths'] : pLang['mth']);
34243424
break;
34253425
case 'quarter':
3426-
tmpPer = Math.round(hours / 24 / 7 / 30 / 3);
3426+
tmpPer = Math.round(hours / 24 / 7 / 13);
34273427
vDuration = tmpPer + ' ' + ((tmpPer != 1) ? pLang['qtrs'] : pLang['qtr']);
34283428
break;
34293429
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsgantt-improved",
3-
"version": "2.8.0",
3+
"version": "2.8.1",
44
"description": "jsgantt-improved",
55
"main": "dist/index.js",
66
"scripts": {

src/draw_columns.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { formatDateStr } from "./utils/date_utils";
2-
import { AddTaskItemObject } from "./task";
3-
import { addListenerInputCell, addListenerClickCell } from "./events";
4-
import { newNode, makeInput } from "./utils/draw_utils";
1+
import { formatDateStr } from './utils/date_utils';
2+
import { AddTaskItemObject } from './task';
3+
import { addListenerInputCell, addListenerClickCell } from './events';
4+
import { newNode, makeInput } from './utils/draw_utils';
55

66
export const COLUMN_ORDER = [
77
'vShowRes',
@@ -16,7 +16,6 @@ export const COLUMN_ORDER = [
1616
'vShowAddEntries'
1717
];
1818

19-
2019
const COLUMNS_TYPES = {
2120
'vShowRes': 'res',
2221
'vShowDur': 'dur',

0 commit comments

Comments
 (0)