mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Added monthChangeSpinner option, if it is true then on mousedown of month change it will keep on changing the month otherwise stop month change, this is required to fix a problem in firefox where the month is continuously getting changed without stop.
This commit is contained in:
parent
2ad8735a02
commit
63a791be5e
@ -164,7 +164,7 @@
|
||||
//fromUnixtime: false,
|
||||
|
||||
step:60,
|
||||
|
||||
monthChangeSpinner:true,
|
||||
closeOnDateSelect:false,
|
||||
closeOnWithoutClick:true,
|
||||
|
||||
@ -792,7 +792,9 @@
|
||||
}else if( $this.hasClass( options.prev ) ) {
|
||||
_xdsoft_datetime.prevMonth();
|
||||
}
|
||||
!stop&&(timer = setTimeout(arguments_callee1,v?v:100));
|
||||
if (options.monthChangeSpinner) {
|
||||
!stop&&(timer = setTimeout(arguments_callee1,v?v:100));
|
||||
}
|
||||
})(500);
|
||||
|
||||
$([document.body,window]).on('mouseup.xdsoft',function arguments_callee2() {
|
||||
|
Loading…
Reference in New Issue
Block a user