mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Corrected Added option closeOnTimeSelect.
This commit is contained in:
parent
8061c66738
commit
9dabc4089b
@ -1609,8 +1609,9 @@
|
|||||||
datetimepicker.trigger('select.xdsoft', [currentTime]);
|
datetimepicker.trigger('select.xdsoft', [currentTime]);
|
||||||
|
|
||||||
datetimepicker.data('input').val(_xdsoft_datetime.str());
|
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)) {
|
if (options.onSelectTime && $.isFunction(options.onSelectTime)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user