Skip to content

Commit

Permalink
Fix updating minTime in refresh()
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthornton committed Nov 28, 2015
1 parent 157414b commit b3fe878
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "datepair.js",
"version": "0.4.13",
"version": "0.4.14",
"main": ["dist/datepair.js", "dist/jquery.datepair.js"],
"ignore": [
"**/.*",
Expand Down
4 changes: 2 additions & 2 deletions dist/datepair.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* datepair.js v0.4.13 - A javascript plugin for intelligently selecting date and time ranges inspired by Google Calendar.
* datepair.js v0.4.14 - A javascript plugin for intelligently selecting date and time ranges inspired by Google Calendar.
* Copyright (c) 2015 Jon Thornton - http://jonthornton.github.com/Datepair.js
* License: MIT
*/
Expand Down Expand Up @@ -87,7 +87,6 @@

// initialize date and time deltas
this.refresh();
this._updateEndMintime();

// init starts here
this._bindChangeHandler();
Expand Down Expand Up @@ -137,6 +136,7 @@
var endTime = this.settings.parseTime(this.endTimeInput);
if (startTime && endTime) {
this.timeDelta = endTime.getTime() - startTime.getTime();
this._updateEndMintime();
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions dist/datepair.min.js

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

2 changes: 1 addition & 1 deletion dist/jquery.datepair.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* datepair.js v0.4.13 - A javascript plugin for intelligently selecting date and time ranges inspired by Google Calendar.
* datepair.js v0.4.14 - A javascript plugin for intelligently selecting date and time ranges inspired by Google Calendar.
* Copyright (c) 2015 Jon Thornton - http://jonthornton.github.com/Datepair.js
* License: MIT
*/
Expand Down
Loading

0 comments on commit b3fe878

Please sign in to comment.