mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Added support for not opening on focus
This commit is contained in:
parent
74389996ea
commit
9484843502
File diff suppressed because one or more lines are too long
2
build/jquery.datetimepicker.full.min.js
vendored
2
build/jquery.datetimepicker.full.min.js
vendored
File diff suppressed because one or more lines are too long
@ -552,6 +552,7 @@ var datetimepickerFactory = function ($) {
|
||||
closeOnTimeSelect: true,
|
||||
closeOnWithoutClick: true,
|
||||
closeOnInputClick: true,
|
||||
openOnFocus: true,
|
||||
|
||||
timepicker: true,
|
||||
datepicker: true,
|
||||
@ -2421,6 +2422,9 @@ var datetimepickerFactory = function ($) {
|
||||
if (input.is(':disabled') || (input.data('xdsoft_datetimepicker').is(':visible') && options.closeOnInputClick)) {
|
||||
return;
|
||||
}
|
||||
if (!options.openOnFocus) {
|
||||
return;
|
||||
}
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(function () {
|
||||
if (input.is(':disabled')) {
|
||||
|
Loading…
Reference in New Issue
Block a user