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,
|
closeOnTimeSelect: true,
|
||||||
closeOnWithoutClick: true,
|
closeOnWithoutClick: true,
|
||||||
closeOnInputClick: true,
|
closeOnInputClick: true,
|
||||||
|
openOnFocus: true,
|
||||||
|
|
||||||
timepicker: true,
|
timepicker: true,
|
||||||
datepicker: true,
|
datepicker: true,
|
||||||
@ -2421,6 +2422,9 @@ var datetimepickerFactory = function ($) {
|
|||||||
if (input.is(':disabled') || (input.data('xdsoft_datetimepicker').is(':visible') && options.closeOnInputClick)) {
|
if (input.is(':disabled') || (input.data('xdsoft_datetimepicker').is(':visible') && options.closeOnInputClick)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!options.openOnFocus) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
timer = setTimeout(function () {
|
timer = setTimeout(function () {
|
||||||
if (input.is(':disabled')) {
|
if (input.is(':disabled')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user