Skip to main content

Bug Tracker

Side navigation

Ticket #2593: ui.datepicker.patch


File ui.datepicker.patch, 1.8 KB (added by atlithorn, March 27, 2008 10:32AM UTC)

patch to version 3.4 to enable monthnames instead of prev and next

--- ui.datepicker.js	2008-02-22 07:28:04.000000000 +0000
+++ ui.datepicker.js3	2008-03-27 10:26:47.000000000 +0000
@@ -1251,12 +1251,12 @@
 		var prev = '
' + (this._canAdjustMonth(-1, drawYear, drawMonth) ? '' + - this._get('prevText') + '' : + (this._get('prevText')||(" ◄" +this._get('monthNames')[(drawMonth+11)%12]) ) + '' : (hideIfNoPrevNext ? '' : '')) + '
'; var next = '
' + (this._canAdjustMonth(+1, drawYear, drawMonth) ? '' + - this._get('nextText') + '' : + (this._get('nextText')||(this._get('monthNames')[(drawMonth+numMonths[1])%12]+" ►") )+ '' : (hideIfNoPrevNext ? '>' : '')) + '
'; var html = (prompt ? '
' + prompt + '
' : '') + (closeAtTop && !this._inline ? controls : '') + @@ -1264,7 +1264,7 @@ (this._isInRange(today) ? '' : '') + (isRTL ? prev : next) + '
'; + (this._get('currentText')||'') + '
' : '') + (isRTL ? prev : next) + '
'; var showWeeks = this._get('showWeeks'); for (var row = 0; row < numMonths[0]; row++) { for (var col = 0; col < numMonths[1]; col++) {

Download in other formats:

Original Format