Fix: the popup is closed on date-click if timepicker is disabled

When "timepicker" is disabled - the popup should close on date-click. The "if" was failing because of the type diff
This commit is contained in:
jitbit 2015-06-21 12:48:55 +03:00
parent ba9fd43a8a
commit 56b5046f96

View File

@ -1669,7 +1669,7 @@
datetimepicker.trigger('select.xdsoft', [currentTime]);
input.val(_xdsoft_datetime.str());
if ((timerclick > 1 || (options.closeOnDateSelect === true || (options.closeOnDateSelect === 0 && !options.timepicker))) && !options.inline) {
if ((timerclick > 1 || (options.closeOnDateSelect === true || (options.closeOnDateSelect === false && !options.timepicker))) && !options.inline) {
datetimepicker.trigger('close.xdsoft');
}