From 1ef7b1ab43fd8c12e1eb6bbd396fc73c6bb71776 Mon Sep 17 00:00:00 2001 From: Brian Hanson Date: Thu, 2 Jan 2025 14:51:22 -0600 Subject: [PATCH] Enable `changeYear` option for datepicker https://api.jqueryui.com/datepicker/#option-changeYear --- src/web/assets/cp/CpAsset.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/web/assets/cp/CpAsset.php b/src/web/assets/cp/CpAsset.php index cecac87a869..07dcfdb6f88 100644 --- a/src/web/assets/cp/CpAsset.php +++ b/src/web/assets/cp/CpAsset.php @@ -571,6 +571,7 @@ private function _datepickerOptions(Locale $formattingLocale, Locale $locale, ?U { return [ 'constrainInput' => false, + 'changeYear' => true, 'dateFormat' => $formattingLocale->getDateFormat(Locale::LENGTH_SHORT, Locale::FORMAT_JUI), 'dayNames' => $locale->getWeekDayNames(Locale::LENGTH_FULL), 'dayNamesMin' => $locale->getWeekDayNames(Locale::LENGTH_ABBREVIATED),