Merge pull request #633 from Alexwijn/master

Added support for not opening on focus
This commit is contained in:
Valeriy 2018-01-23 10:49:09 +05:00 committed by GitHub
commit a32c8eb072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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')) {