diff --git a/dist/js/datepicker.js b/dist/js/datepicker.js index ece52d4..8b3e6fc 100644 --- a/dist/js/datepicker.js +++ b/dist/js/datepicker.js @@ -18,8 +18,8 @@ var Datepicker; dateFormat: 'dd.mm.yyyy', toggleSelected: true, - defaultView: 'years', - minView: 'years', + view: 'days', + minView: 'days', showOtherMonths: true, selectOtherMonths: true, @@ -68,7 +68,7 @@ var Datepicker; this.silent = false; // Need to prevent unnecessary rendering this.currentDate = this.opts.start; - this.currentView = this.opts.defaultView; + this.currentView = this.opts.view; this.minDate = this.opts.minDate ? this.opts.minDate : new Date(-8639999913600000); this.maxDate = this.opts.maxDate ? this.opts.maxDate : new Date(8639999913600000); this.selectedDates = []; diff --git a/js/datepicker/datepicker.js b/js/datepicker/datepicker.js index 435ba35..25f7bb1 100644 --- a/js/datepicker/datepicker.js +++ b/js/datepicker/datepicker.js @@ -18,8 +18,8 @@ var Datepicker; dateFormat: 'dd.mm.yyyy', toggleSelected: true, - defaultView: 'years', - minView: 'years', + view: 'days', + minView: 'days', showOtherMonths: true, selectOtherMonths: true, @@ -68,7 +68,7 @@ var Datepicker; this.silent = false; // Need to prevent unnecessary rendering this.currentDate = this.opts.start; - this.currentView = this.opts.defaultView; + this.currentView = this.opts.view; this.minDate = this.opts.minDate ? this.opts.minDate : new Date(-8639999913600000); this.maxDate = this.opts.maxDate ? this.opts.maxDate : new Date(8639999913600000); this.selectedDates = [];