diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index bdeb590..d57d666 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -437,6 +437,7 @@ monthChangeSpinner: true, closeOnDateSelect: false, + closeOnTimeSelect: false, closeOnWithoutClick: true, closeOnInputClick: true, @@ -1608,9 +1609,10 @@ datetimepicker.trigger('select.xdsoft', [currentTime]); datetimepicker.data('input').val(_xdsoft_datetime.str()); - if (!options.inline) { - datetimepicker.trigger('close.xdsoft'); - } + + if (options.inline !== true && options.closeOnTimeSelect === true) { + datetimepicker.trigger('close.xdsoft'); + } if (options.onSelectTime && $.isFunction(options.onSelectTime)) { options.onSelectTime.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), xdevent);