// Fix month overlapping on datapicker

This commit is contained in:
Jerome Nadaud
2013-10-15 19:14:45 +02:00
parent aefd5947d2
commit 04e760512f
2 changed files with 31 additions and 6 deletions
@@ -19,7 +19,7 @@
//click action
!function( $ ) {
var click, switched, val, start, end, over;
var click, switched, val, start, end, over
// Picker object
var Datepicker = function(element, options){
@@ -264,6 +264,14 @@
this.viewDate['get'+DPGlobal.modes[this.viewMode].navFnc].call(this.viewDate) +
DPGlobal.modes[this.viewMode].navStep * (target[0].className === 'prev' ? -1 : 1)
);
this.date = new Date(this.viewDate);
this.element.trigger({
type: 'changeDate',
date: this.date,
viewMode: DPGlobal.modes[this.viewMode].clsName
});
this.fill();
this.set();
break;