From 68225f7435b0302170174aab325a7a519dca915f Mon Sep 17 00:00:00 2001 From: slashcarlos Date: Fri, 4 Dec 2015 14:21:47 +0100 Subject: [PATCH] Update jquery-ui-timepicker-addon.js When not using timeRange method, it seems to allow two timepikers ("from" and "to" for instance) with minTime and MaxTime interractions working better. I don't know if those changes can have bad effect on the plugin proper working --- src/jquery-ui-timepicker-addon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jquery-ui-timepicker-addon.js b/src/jquery-ui-timepicker-addon.js index 3cff3a8..7c99bf8 100644 --- a/src/jquery-ui-timepicker-addon.js +++ b/src/jquery-ui-timepicker-addon.js @@ -717,7 +717,7 @@ } else if (this.hour===tempMinTime.getHours() && this.minutetempMinTime.getHours()) { this._defaults.hourMin=tempMinTime.getHours(); this._defaults.minuteMin=tempMinTime.getMinutes(); } else if (this._defaults.hourMin===tempMinTime.getHours()===this.hour && this._defaults.minuteMintempMaxTime.getMinutes()) { this.minute=this._defaults.minuteMax=tempMaxTime.getMinutes(); } else { - if (this._defaults.hourMax>tempMaxTime.getHours()) { + if (this._defaults.hourMaxtempMaxTime.getMinutes()) {