mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT Enforcing min/max config on DateField in jQuery date picker (AIR-93)
This commit is contained in:
parent
7c147fed14
commit
b05e3bd890
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user