template can now contain also content

This commit is contained in:
zadam
2019-09-08 16:57:41 +02:00
parent 16be0c1014
commit 30c56cd8af
2 changed files with 25 additions and 2 deletions

View File

@@ -49,9 +49,9 @@ class CalendarWidget extends StandardWidget {
}
init($el, activeDate) {
this.date = new Date();
this.todaysDate = new Date();
this.activeDate = new Date(Date.parse(activeDate));
this.todaysDate = new Date();
this.date = new Date(this.activeDate.getTime());
this.$month = $el.find('[data-calendar-area="month"]');
this.$next = $el.find('[data-calendar-toggle="next"]');