build version 0.0.6

This commit is contained in:
Faris Ansari 2017-06-06 12:05:09 +05:30
parent 47819199fe
commit 25c4d24c0f
5 changed files with 13 additions and 5 deletions

10
dist/frappe-gantt.js vendored
View File

@ -661,7 +661,9 @@ return /******/ (function(modules) { // webpackBootstrap
);
self.element_groups.arrow.add(arrow.element);
return arrow; // eslint-disable-line
});
}).filter(function (arr) {
return arr;
}); // filter falsy values
self._arrows = self._arrows.concat(arrows);
};
@ -1585,6 +1587,12 @@ return /******/ (function(modules) { // webpackBootstrap
var new_start_date = gt.gantt_start.clone().add(x_in_units * gt.config.step, 'hours');
var width_in_units = bar.getWidth() / gt.config.column_width;
var new_end_date = new_start_date.clone().add(width_in_units * gt.config.step, 'hours');
// lets say duration is 2 days
// start_date = May 24 00:00:00
// end_date = May 24 + 2 days = May 26 (incorrect)
// so subtract 1 second so that
// end_date = May 25 23:59:59
new_end_date.add('-1', 'seconds');
return { new_start_date: new_start_date, new_end_date: new_end_date };
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "frappe-gantt",
"version": "0.0.5",
"version": "0.0.6",
"description": "A simple, modern, interactive gantt library for the web",
"main": "dist/frappe-gantt.js",
"scripts": {