mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #245 from Marshevskyy/applyButton
Added option closeOnTimeSelect
This commit is contained in:
commit
b885910a1c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user