-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dongsik Yoo
committed
Mar 8, 2018
1 parent
405c8e2
commit 462eae5
Showing
8 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
@@ -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, | ||
|
@@ -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); | ||
|
@@ -17082,7 +17083,7 @@ return /******/ (function(modules) { // webpackBootstrap | |
start: start, | ||
end: end | ||
}; | ||
} | ||
}; | ||
|
||
/** | ||
* Returns whether the given element is Weekday-Schedule. | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|