Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Commit

Permalink
issue #51
Browse files Browse the repository at this point in the history
  • Loading branch information
wakirin committed Mar 30, 2019
1 parent aa4ab21 commit 7fa7c73
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog
All notable changes to this project will be documented in this file.

[1.3.3] - 2019-03-29
[1.3.4] - 2019-03-30
* fixed bug #51

[1.3.2] - 2019-03-25
Expand Down
16 changes: 6 additions & 10 deletions lightpick.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,10 +1093,6 @@
if (!preventOnSelect && typeof this._opts.onSelect === 'function') {
this._opts.onSelect.call(this, this.getStartDate(), this.getEndDate());
}

if (this._opts.inline) {
updateDates(this.el, this._opts);
}
},

setEndDate: function(date, preventOnSelect)
Expand Down Expand Up @@ -1129,18 +1125,18 @@
if (!preventOnSelect && typeof this._opts.onSelect === 'function') {
this._opts.onSelect.call(this, this.getStartDate(), this.getEndDate());
}

if (this._opts.inline) {
updateDates(this.el, this._opts);
}
},

setDate: function(date)
setDate: function(date, preventOnSelect)
{
if (!this._opts.singleDate) {
return;
}
this.setStartDate(date, true);
this.setStartDate(date, preventOnSelect);

if (this.isShowing) {
updateDates(this.el, this._opts);
}
},

setDateRange: function(start, end, preventOnSelect)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lightpick",
"version": "1.3.3",
"version": "1.3.4",
"description": "Javascript date range picker - lightweight, no jQuery",
"main": "lightpick.js",
"scripts": {
Expand Down

0 comments on commit 7fa7c73

Please sign in to comment.