Merge pull request #220 from hovel/master

Do not check whether input is visible
This commit is contained in:
Valeriy 2014-12-30 01:00:32 +05:00
commit a14e6e43d3

View File

@ -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;
} }