Merge pull request #134 from jaxxreal/master

Added closeOnInputClick options
This commit is contained in:
Valeriy 2014-06-04 13:40:35 +06:00
commit ecc2a3b00e

View File

@ -189,6 +189,7 @@
monthChangeSpinner:true,
closeOnDateSelect:false,
closeOnWithoutClick:true,
closeOnInputClick: true,
timepicker:true,
datepicker:true,
@ -1240,7 +1241,7 @@
input
.data( 'xdsoft_datetimepicker',datetimepicker )
.on('open.xdsoft focusin.xdsoft mousedown.xdsoft',function(event) {
if( input.is(':disabled')||input.is(':hidden')||!input.is(':visible') )
if( input.is(':disabled')||input.is(':hidden')||!input.is(':visible')||(input.data('xdsoft_datetimepicker').is(':visible') && options.closeOnInputClick) )
return;
clearTimeout(timer);
timer = setTimeout(function() {