mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #220 from hovel/master
Do not check whether input is visible
This commit is contained in:
commit
a14e6e43d3
@ -694,7 +694,7 @@
|
|||||||
lazyInit = function (input) {
|
lazyInit = function (input) {
|
||||||
input
|
input
|
||||||
.on('open.xdsoft focusin.xdsoft mousedown.xdsoft', function initOnActionCallback(event) {
|
.on('open.xdsoft focusin.xdsoft mousedown.xdsoft', function initOnActionCallback(event) {
|
||||||
if (input.is(':disabled') || input.is(':hidden') || !input.is(':visible') || input.data('xdsoft_datetimepicker')) {
|
if (input.is(':disabled') || input.data('xdsoft_datetimepicker')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clearTimeout(lazyInitTimer);
|
clearTimeout(lazyInitTimer);
|
||||||
@ -1722,12 +1722,12 @@
|
|||||||
input
|
input
|
||||||
.data('xdsoft_datetimepicker', datetimepicker)
|
.data('xdsoft_datetimepicker', datetimepicker)
|
||||||
.on('open.xdsoft focusin.xdsoft mousedown.xdsoft', function (event) {
|
.on('open.xdsoft focusin.xdsoft mousedown.xdsoft', function (event) {
|
||||||
if (input.is(':disabled') || input.is(':hidden') || !input.is(':visible') || (input.data('xdsoft_datetimepicker').is(':visible') && options.closeOnInputClick)) {
|
if (input.is(':disabled') || (input.data('xdsoft_datetimepicker').is(':visible') && options.closeOnInputClick)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
timer = setTimeout(function () {
|
timer = setTimeout(function () {
|
||||||
if (input.is(':disabled') || input.is(':hidden') || !input.is(':visible')) {
|
if (input.is(':disabled')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user