Skip to content

Commit

Permalink
Add text to forward/back buttons KidSysco#6
Browse files Browse the repository at this point in the history
Revised fix for KidSysco#6
  • Loading branch information
SteveDavis-TR committed Aug 14, 2014
1 parent 0a1f693 commit 9e36810
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions MonthPicker.2.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt.
year: "Year",
prevYear: "Previous Year",
nextYear: "Next Year",
nextText: "Next",
prevText: "Prev",
buttonText: "Open Month Chooser",
next5Years: 'Jump Forward 5 Years',
prev5Years: 'Jump Back 5 Years',
nextLabel: "Next",
prevLabel: "Prev",
jumpYears: "Jump Years",
months: ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May', 'June', 'July', 'Aug.', 'Sep.', 'Oct.', 'Nov.', 'Dec.']
}
Expand Down Expand Up @@ -253,14 +254,16 @@ http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt.
},
text: false
});

$('.previous-year button span.ui-button-icon-primary').text(this._i18n('prevLabel'));

$('.next-year button', this._monthPickerMenu)
.button({
icons: {
primary: 'ui-icon-circle-triangle-e'
},
text: false
});
$('.next-year button span.ui-button-icon-primary').text(this._i18n('nextLabel'));

$('.month-picker-month-table td button', this._monthPickerMenu).button();

Expand Down Expand Up @@ -567,13 +570,11 @@ http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt.

$('.previous-year button', this._monthPickerMenu)
.attr('title', this._i18n('prevYear'))
.text(this._i18n('prevText'))
.unbind('click')
.bind('click.MonthPicker', $.proxy(this._previousYear, this));

$('.next-year button', this._monthPickerMenu)
.attr('title', this._i18n('nextYear'))
.text(this._i18n('nextText'))
.unbind('click')
.bind('click.MonthPicker', $.proxy(this._nextYear, this));

Expand Down Expand Up @@ -606,17 +607,15 @@ http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt.
var _year = this._getPickerYear();

$('.previous-year button', this._monthPickerMenu)
.attr('title', 'Jump Back 5 Years')
.text(this._i18n('prevText'))
.attr('title', this._i18n('prev5Years'))
.unbind('click')
.bind('click', $.proxy(function () {
this._previousYears();
return false;
}, this));

$('.next-year button', this._monthPickerMenu)
.attr('title', 'Jump Forward 5 Years')
.text(this._i18n('nextText'))
.attr('title', this._i18n('next5Years'))
.unbind('click')
.bind('click', $.proxy(function () {
this._nextYears();
Expand Down

0 comments on commit 9e36810

Please sign in to comment.