Skip to content

Commit

Permalink
0.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsik Yoo committed Mar 8, 2018
1 parent 405c8e2 commit 462eae5
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dist/tui-calendar.js",
"dist/tui-calendar.css"
],
"version": "0.6.4",
"version": "0.6.5",
"description": "TOAST UI Calendar",
"ignore": [
"**/.*",
Expand Down
2 changes: 1 addition & 1 deletion dist/tui-calendar.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions dist/tui-calendar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* tui-calendar
* @version 0.6.4 | Fri Mar 02 2018
* @version 0.6.5 | Thu Mar 08 2018
* @author NHNEnt FE Development Lab <[email protected]>
* @license undefined
*/
Expand Down Expand Up @@ -17046,7 +17046,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (self._requestOnClick) {
self.fire('monthCreationClick', eventData);

range = adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));
range = self._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));

self._createSchedule({
start: range.start,
Expand All @@ -17060,20 +17060,21 @@ return /******/ (function(modules) { // webpackBootstrap
};

/**
* Adjust time to half hour or hour o'clock
* Adjust time to our o'clock
* @param {TZDate} start - start time
* @param {TZDate} end - end time
* @returns {Object} start and end
*/
function adjustStartAndEndTime(start, end) {
MonthCreation.prototype._adjustStartAndEndTime = function(start, end) {
var now = new TZDate();
var hours = now.getHours();
var minutes = now.getMinutes();

// adjust start to less time. Adjusting had been greater time in monthly view when clicking grid
if (minutes <= 30) {
minutes = 30;
} else {
hours += 1;
minutes = 0;
} else {
minutes = 30;
}
start.setHours(hours, minutes, 0, 0);
end.setHours(hours + 1, minutes, 0, 0);
Expand All @@ -17082,7 +17083,7 @@ return /******/ (function(modules) { // webpackBootstrap
start: start,
end: end
};
}
};

/**
* Returns whether the given element is Weekday-Schedule.
Expand Down
2 changes: 1 addition & 1 deletion dist/tui-calendar.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tui-calendar.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/tui-calendar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tui-calendar.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tui-calendar",
"author": "NHNEnt FE Development Lab <[email protected]>",
"version": "0.6.4",
"version": "0.6.5",
"main": "dist/tui-calendar.js",
"license:": "MIT",
"description": "TOAST UI Calendar",
Expand Down

0 comments on commit 462eae5

Please sign in to comment.