bookingsync-calendar-widget
Advanced tools
Comparing version
{ | ||
"name": "bookingsync-calendar-widget", | ||
"version": "0.0.13", | ||
"version": "0.0.15", | ||
"description": "BookingSync Calendar Widget", | ||
@@ -5,0 +5,0 @@ "main": "dist/bookingsync-calendar-widget.js", |
@@ -1,2 +0,2 @@ | ||
/* global document, module */ | ||
/* global document, module, VERSION */ | ||
import Calendar from './calendar'; | ||
@@ -24,2 +24,4 @@ | ||
Calendar.VERSION = VERSION; | ||
document.addEventListener('DOMContentLoaded', () => { | ||
@@ -26,0 +28,0 @@ if (Calendar.autoInit !== false) { |
@@ -48,3 +48,3 @@ /* global VERSION, Node, NODE_ENV, CSS_PREFIX, document, require */ | ||
} | ||
return new Date(`${year}-${pad(month + 1)}-${pad(day)}`); | ||
return new Date(year, month, day); | ||
}; | ||
@@ -127,2 +127,3 @@ | ||
this.addBtnsEvents(); | ||
console.log(`[BookingSync Calendar Widget ${VERSION}] inited`); | ||
this.emit('init'); | ||
@@ -535,3 +536,3 @@ } | ||
daysTplString(year, month) { | ||
const startOfMonth = dateToIso(year, month, 1).getDay(); | ||
const startOfMonth = new Date(year, month, 1).getDay(); | ||
const daysInMonth = monthLength(year, month); | ||
@@ -538,0 +539,0 @@ const rowTemplate = tpls.weekRow; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
352039
0.22%29
3.57%1685
0.18%