Forked from http://t1m0n.name/air-datepicker/, refined it to support AMD and fixed some bugs.
Lightweight customizable cross-browser jQuery datepicker, built with es5 and css-flexbox. Works in all modern desktop and mobile browsers (tested on Android 4.4+ and iOS8+).
npm i --save air-datepicker-amd
$('.my-datepicker').datepicker([options])
- trigger onChangeMonth function while change view from 'year' to 'month'.
- refine datepicker to update view when mouse leave datepicker content body, so that 'in-range' classes won't be preserved when the mouse is no longer hover on datepicker after selecting one date when 'range' = true.
- refine build tasks for i18n so that jQuery won't be assumed as global variable; fix the bug that disabled navigation button (prev/next) is still clickable when change style to 'visibility = visible'.
- support AMD for datepicker.en.js; fix the bug that when 'showOtherMonths' = false and other-month cell is still clickable.
- support AMD for body.js, datepicker.js, timepicker.js and navigation.js