Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ENHANCEMENT Enforcing min/max config on DateField in jQuery date pick…

…er (AIR-93)
  • Loading branch information...
commit b05e3bd89043191df0ef82705fdb58007fdb5d93 1 parent 7c147fe
Ingo Schommer chillu authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  javascript/DateField.js
3  javascript/DateField.js
@@ -16,6 +16,9 @@
config = $.extend(config, $.datepicker.regional[config.locale], {});
+ if(config.min) config.minDate = $.datepicker.parseDate('yy-mm-dd', config.min);
+ if(config.max) config.maxDate = $.datepicker.parseDate('yy-mm-dd', config.max);
// Initialize and open a datepicker
// live() doesn't have "onmatch", and jQuery.entwine is a bit too heavyweight for this, so we need to do this onclick.
config.dateFormat = config.jqueryDateformat;
Please sign in to comment.
Something went wrong with that request. Please try again.