mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #134 from jaxxreal/master
Added closeOnInputClick options
This commit is contained in:
commit
ecc2a3b00e
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user