fixed case when 'multipleDates' and 'range' both set to true

This commit is contained in:
t1m0n 2016-01-22 17:09:17 +03:00
parent 33ba830ccc
commit 3017dad86d
3 changed files with 3 additions and 3 deletions

View File

@ -367,7 +367,7 @@ var Datepicker;
_this.nav._render()
}
if (opts.multipleDates) {
if (opts.multipleDates && !opts.range) { // Set priority to range functionality
if (len === opts.multipleDates) return;
if (!_this._isSelected(date)) {
_this.selectedDates.push(date);

File diff suppressed because one or more lines are too long

View File

@ -367,7 +367,7 @@ var Datepicker;
_this.nav._render()
}
if (opts.multipleDates) {
if (opts.multipleDates && !opts.range) { // Set priority to range functionality
if (len === opts.multipleDates) return;
if (!_this._isSelected(date)) {
_this.selectedDates.push(date);