diff --git a/package.json b/package.json index 85de70cb8..53dd8050e 100755 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "frappe-gantt", + "name": "frappe-gantt-vermillion", "version": "0.6.1", "description": "A simple, modern, interactive gantt library for the web", "main": "src/index.js", @@ -14,7 +14,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/frappe/gantt.git" + "url": "git+https://github.com/apar-adhikari/gantt" }, "files": [ "src", @@ -48,5 +48,8 @@ }, "eslintIgnore": [ "dist" - ] + ], + "directories": { + "test": "tests" + } } diff --git a/src/index.js b/src/index.js index 379c2fb49..3642b239e 100644 --- a/src/index.js +++ b/src/index.js @@ -151,6 +151,11 @@ export default class Gantt { // cache index task._index = i; + // To support tasks for same row + if (typeof task.custom_index === 'number') { + task._index = task.custom_index; + } + // invalid dates if (!task.start && !task.end) { const today = date_utils.today();