diff --git a/jade/page-contents/pickers_content.html b/jade/page-contents/pickers_content.html index 91c443ca77..fdaecbc49a 100644 --- a/jade/page-contents/pickers_content.html +++ b/jade/page-contents/pickers_content.html @@ -111,6 +111,12 @@
Options
10 Number of years either side, or array of upper/lower range. + + yearRangeReverse + Boolean + false + Sort year range in reverse order + isRTL Boolean @@ -760,4 +766,4 @@
- \ No newline at end of file + diff --git a/js/datepicker.js b/js/datepicker.js index 7199dd27e7..c89c811221 100644 --- a/js/datepicker.js +++ b/js/datepicker.js @@ -513,9 +513,7 @@ } return ( `` + - `` + + `` + '' ); } @@ -609,6 +607,9 @@ arr.push(``); } } + if (opts.yearRangeReverse) { + arr.reverse(); + } yearHtml = `