Corrected Added option closeOnTimeSelect.

This commit is contained in:
r.marshevskyy 2015-02-26 13:42:47 +02:00
parent 8061c66738
commit 9dabc4089b

View File

@ -1609,8 +1609,9 @@
datetimepicker.trigger('select.xdsoft', [currentTime]);
datetimepicker.data('input').val(_xdsoft_datetime.str());
if (options.closeOnTimeSelect === true) {
datetimepicker.trigger('close.xdsoft');
if (options.inline !== true && options.closeOnTimeSelect === true) {
datetimepicker.trigger('close.xdsoft');
}
if (options.onSelectTime && $.isFunction(options.onSelectTime)) {