mirror of
https://github.com/frappe/air-datepicker.git
synced 2026-01-14 11:01:22 +08:00
add todayButton advanced behaviour, closes #36
This commit is contained in:
parent
1541a90d66
commit
0f87ce2d58
4
dist/js/datepicker.js
vendored
4
dist/js/datepicker.js
vendored
@ -547,6 +547,10 @@
|
||||
this.view = this.opts.minView;
|
||||
this.silent = false;
|
||||
this.date = new Date();
|
||||
|
||||
if (this.opts.todayButton instanceof Date) {
|
||||
this.selectDate(this.opts.todayButton)
|
||||
}
|
||||
},
|
||||
|
||||
clear: function () {
|
||||
|
||||
4
dist/js/datepicker.min.js
vendored
4
dist/js/datepicker.min.js
vendored
File diff suppressed because one or more lines are too long
@ -547,6 +547,10 @@
|
||||
this.view = this.opts.minView;
|
||||
this.silent = false;
|
||||
this.date = new Date();
|
||||
|
||||
if (this.opts.todayButton instanceof Date) {
|
||||
this.selectDate(this.opts.todayButton)
|
||||
}
|
||||
},
|
||||
|
||||
clear: function () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user