giddie/mootools-datepicker — pull request #1 by kangarolf (2014-05-12 10:56:20+00:00)
Title: Wrong number of years per row

Hey all, just worked out a weirdness that I was seeing in the year view.

In the Picker.Date.js file line 433 part of the years.each function it was using a mod 4 function instead of 5 so you are only getting 4 years across each table row and so would miss off the last 4 years..

Change;

if (i % 4 === 0) {

to

if (i % 5 === 0) {

Early versions didnt use tables and rows just a set of divs.