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:
devashishmamgain 2014-05-14 11:18:24 +05:30
parent 2ad8735a02
commit 63a791be5e

View File

@ -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() {