mirror of
https://github.com/frappe/air-datepicker.git
synced 2026-01-14 11:01:22 +08:00
rename defaultView to view
This commit is contained in:
parent
50ddae9304
commit
0bc3739697
6
dist/js/datepicker.js
vendored
6
dist/js/datepicker.js
vendored
@ -18,8 +18,8 @@ var Datepicker;
|
|||||||
dateFormat: 'dd.mm.yyyy',
|
dateFormat: 'dd.mm.yyyy',
|
||||||
toggleSelected: true,
|
toggleSelected: true,
|
||||||
|
|
||||||
defaultView: 'years',
|
view: 'days',
|
||||||
minView: 'years',
|
minView: 'days',
|
||||||
|
|
||||||
showOtherMonths: true,
|
showOtherMonths: true,
|
||||||
selectOtherMonths: true,
|
selectOtherMonths: true,
|
||||||
@ -68,7 +68,7 @@ var Datepicker;
|
|||||||
this.silent = false; // Need to prevent unnecessary rendering
|
this.silent = false; // Need to prevent unnecessary rendering
|
||||||
|
|
||||||
this.currentDate = this.opts.start;
|
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.minDate = this.opts.minDate ? this.opts.minDate : new Date(-8639999913600000);
|
||||||
this.maxDate = this.opts.maxDate ? this.opts.maxDate : new Date(8639999913600000);
|
this.maxDate = this.opts.maxDate ? this.opts.maxDate : new Date(8639999913600000);
|
||||||
this.selectedDates = [];
|
this.selectedDates = [];
|
||||||
|
|||||||
@ -18,8 +18,8 @@ var Datepicker;
|
|||||||
dateFormat: 'dd.mm.yyyy',
|
dateFormat: 'dd.mm.yyyy',
|
||||||
toggleSelected: true,
|
toggleSelected: true,
|
||||||
|
|
||||||
defaultView: 'years',
|
view: 'days',
|
||||||
minView: 'years',
|
minView: 'days',
|
||||||
|
|
||||||
showOtherMonths: true,
|
showOtherMonths: true,
|
||||||
selectOtherMonths: true,
|
selectOtherMonths: true,
|
||||||
@ -68,7 +68,7 @@ var Datepicker;
|
|||||||
this.silent = false; // Need to prevent unnecessary rendering
|
this.silent = false; // Need to prevent unnecessary rendering
|
||||||
|
|
||||||
this.currentDate = this.opts.start;
|
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.minDate = this.opts.minDate ? this.opts.minDate : new Date(-8639999913600000);
|
||||||
this.maxDate = this.opts.maxDate ? this.opts.maxDate : new Date(8639999913600000);
|
this.maxDate = this.opts.maxDate ? this.opts.maxDate : new Date(8639999913600000);
|
||||||
this.selectedDates = [];
|
this.selectedDates = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user