Browse Source

Increase year range for date pickers - refs BT#10102 #TMI

Angel Fernando Quiroz Campos 9 years ago
parent
commit
76d25d799a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/inc/lib/formvalidator/Element/DatePicker.php

+ 2 - 1
main/inc/lib/formvalidator/Element/DatePicker.php

@@ -92,7 +92,8 @@ class DatePicker extends HTML_QuickForm_text
                     buttonImageOnly: true,
                     buttonText: '" . get_lang('SelectDate') . "',
                     changeMonth: true,
-                    changeYear: true
+                    changeYear: true,
+                    yearRange: 'c-60y:c+5y'
                 });
             });
         </script>";