vendor/assets/javascripts/pickadate/picker.date.js in pickadate-rails-1.1.2 vs vendor/assets/javascripts/pickadate/picker.date.js in pickadate-rails-1.1.3
- old
+ new
@@ -1,8 +1,8 @@
/*!
- * Date picker for pickadate.js v3.1.1
+ * Date picker for pickadate.js v3.1.2
* http://amsul.github.io/pickadate.js/date.htm
*/
/*jshint
debug: true,
@@ -329,14 +329,14 @@
// [1] Not inverted and date disabled.
// [2] Inverted and some dates enabled.
// [3] Out of range.
//
// Cases to **not** validate for:
+ // • Navigating months.
// • Not inverted and date enabled.
// • Inverted and all dates disabled.
- // • Navigating months.
// • ..and anything else.
- if (
+ if ( !options.nav ) if (
/* 1 */ ( !isInverted && calendar.disabled( dateObject ) ) ||
/* 2 */ ( isInverted && calendar.disabled( dateObject ) && ( hasEnabledWeekdays || hasEnabledBeforeTarget || hasEnabledAfterTarget ) ) ||
/* 3 */ ( dateObject.pick <= minLimitObject.pick || dateObject.pick >= maxLimitObject.pick )
) {