You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// year selector
var base = new Date();
yearSelector.empty();
for (var i = base.getFullYear() + conf.yearRange[0]; i <= base.getFullYear() + conf.yearRange[1]; i++) {
if (min < new Date(i + 1, -1, 0) && max > new Date(i, 0, 0)) {
yearSelector.append($("<option/>").text(i));
}
}
The text was updated successfully, but these errors were encountered:
Yes .. imaging that you have a yearRange such as [-100,0] for choosing birth dates. I select my birth date (19xx) and that become the new reference ? Now the next time the popup is displayed, the range is 19xx-100 to 19xx-0 instead on the original 2010-100 to 2010-0. If you had accidentally chosen a to-early year, there is no way to correct your entry because the yearRange is preventing later years from being chosen.
yearRange based on now makes some sense. So would a yearRange with real dates. And using min/max instead of yearRange wold also work,
Suggest this code
The text was updated successfully, but these errors were encountered: