From 3b9aa3306c93a6da6ce1a5c3ac1e852c4cfce4db Mon Sep 17 00:00:00 2001 From: Dan Grossman Date: Mon, 18 Aug 2014 13:23:24 -0400 Subject: [PATCH] Fix #425 --- bower.json | 2 +- daterangepicker.js | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bower.json b/bower.json index 9120e3b5..1e72abe8 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "bootstrap-daterangepicker", - "version": "1.3.11", + "version": "1.3.12", "main": [ "daterangepicker.js", "daterangepicker-bs3.css" diff --git a/daterangepicker.js b/daterangepicker.js index 8ff56ac1..2be868aa 100644 --- a/daterangepicker.js +++ b/daterangepicker.js @@ -1,7 +1,7 @@ /** -* @version: 1.3.11 +* @version: 1.3.12 * @author: Dan Grossman http://www.dangrossman.info/ -* @date: 2014-08-11 +* @date: 2014-08-18 * @copyright: Copyright (c) 2012-2014 Dan Grossman. All rights reserved. * @license: Licensed under Apache License v2.0. See http://www.apache.org/licenses/LICENSE-2.0 * @website: http://www.improvely.com/ @@ -841,7 +841,11 @@ this.leftCalendar.calendar = this.buildCalendar(this.leftCalendar.month.month(), this.leftCalendar.month.year(), this.leftCalendar.month.hour(), this.leftCalendar.month.minute(), 'left'); this.rightCalendar.calendar = this.buildCalendar(this.rightCalendar.month.month(), this.rightCalendar.month.year(), this.rightCalendar.month.hour(), this.rightCalendar.month.minute(), 'right'); this.container.find('.calendar.left').empty().html(this.renderCalendar(this.leftCalendar.calendar, this.startDate, this.minDate, this.maxDate)); - this.container.find('.calendar.right').empty().html(this.renderCalendar(this.rightCalendar.calendar, this.endDate, this.startDate, this.maxDate)); + + var minDate = this.minDate; + if (!this.singleDatePicker) + minDate = this.startDate; + this.container.find('.calendar.right').empty().html(this.renderCalendar(this.rightCalendar.calendar, this.endDate, minDate, this.maxDate)); this.container.find('.ranges li').removeClass('active'); var customRange = true;