add todayButton advanced behaviour, closes #36

This commit is contained in:
t1m0n 2016-04-18 10:54:44 +03:00
parent 1541a90d66
commit 0f87ce2d58
3 changed files with 10 additions and 2 deletions

View File

@ -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 () {

File diff suppressed because one or more lines are too long

View File

@ -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 () {