rename defaultView to view

This commit is contained in:
t1m0n 2015-11-10 12:05:25 +03:00
parent 50ddae9304
commit 0bc3739697
2 changed files with 6 additions and 6 deletions

View File

@ -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 = [];

View File

@ -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 = [];