Skip to content

Commit

Permalink
TRUNK-3829: Code improvements for calendar.js
Browse files Browse the repository at this point in the history
(cherry picked from commit 79237cd)
  • Loading branch information
bhashitha authored and dkayiwa committed May 29, 2013
1 parent 38c528e commit 46bdca0
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -45,9 +45,7 @@ function showCalendar(obj, yearsPrevious, yearsNext) {
yearsNext= 10;
}

if (yearsPrevious && yearsNext) {
opts["yearRange"] = "-"+yearsPrevious+":+"+yearsNext;
}
opts["yearRange"] = "-"+yearsPrevious+":+"+yearsNext;

var dp = new DatePicker(jsDateFormat, obj.id, opts);
jQuery.datepicker.setDefaults(jQuery.datepicker.regional[jsLocale]);
Expand Down

0 comments on commit 46bdca0

Please sign in to comment.