diff options
author | Keith Wood <kbwood.au@gmail.com> | 2008-07-30 12:22:15 +0000 |
---|---|---|
committer | Keith Wood <kbwood.au@gmail.com> | 2008-07-30 12:22:15 +0000 |
commit | 9b8fccfa4a279000fe55458ff00b849558c0cbaf (patch) | |
tree | 956193832990b389135e7e92323bab3509eefbe3 /ui/ui.datepicker.js | |
parent | b65b5d087314436d7c1c915b2eca9121ee597ce3 (diff) | |
download | jquery-ui-9b8fccfa4a279000fe55458ff00b849558c0cbaf.tar.gz jquery-ui-9b8fccfa4a279000fe55458ff00b849558c0cbaf.zip |
Rename monthAfterYear setting to showMonthAfterYear
Diffstat (limited to 'ui/ui.datepicker.js')
-rw-r--r-- | ui/ui.datepicker.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index e60b1bc18..e780c97da 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -91,7 +91,7 @@ function Datepicker() { gotoCurrent: false, // True if today link goes back to current selection instead changeMonth: true, // True if month can be selected directly, false if only prev/next changeYear: true, // True if year can be selected directly, false if only prev/next - monthAfterYear: false, // True if the year select precedes month, false for month then year + showMonthAfterYear: false, // True if the year select precedes month, false for month then year yearRange: '-10:+10', // Range of years to display in drop-down, // either relative to current year (-nn:+nn) or absolute (nnnn:nnnn) changeFirstDay: true, // True to click on day name to change, false to remain as set @@ -1440,7 +1440,7 @@ $.extend(Datepicker.prototype, { _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate, selectedDate, secondary, showStatus, initStatus, monthNames) { minDate = (inst.rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate); - var monthAfterYear = this._get(inst, 'monthAfterYear'); + var showMonthAfterYear = this._get(inst, 'showMonthAfterYear'); var html = '<div class="ui-datepicker-header">'; var monthHtml = ''; // month selection @@ -1462,7 +1462,7 @@ $.extend(Datepicker.prototype, { } monthHtml += '</select>'; } - if (!monthAfterYear) + if (!showMonthAfterYear) html += monthHtml; // year selection if (secondary || !this._get(inst, 'changeYear')) @@ -1496,7 +1496,7 @@ $.extend(Datepicker.prototype, { } html += '</select>'; } - if (monthAfterYear) + if (showMonthAfterYear) html += monthHtml; html += '</div>'; // Close datepicker_header return html; |