File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 238
238
firstDay = parseInt ( this . _get ( inst , 'firstDay' ) , 10 ) ;
239
239
firstDay = isNaN ( firstDay ) ? 0 : firstDay ;
240
240
241
- for ( row ; row < numMonths [ 0 ] ; row ++ ) {
241
+ for ( row = 0 ; row < numMonths [ 0 ] ; row ++ ) {
242
242
this . maxRows = 4 ;
243
243
244
- for ( col ; col < numMonths [ 1 ] ; col ++ ) {
244
+ for ( col = 0 ; col < numMonths [ 1 ] ; col ++ ) {
245
245
selectedDate = this . _daylightSavingAdjust ( new Date ( drawYear , drawMonth , inst . selectedDay ) ) ;
246
246
247
+ calender = '' ;
248
+
247
249
if ( isMultiMonth ) {
248
250
calender += '<div class="ui-datepicker-group' ;
249
251
273
275
thead = showWeek ?
274
276
'<th class="ui-datepicker-week-col">' + this . _get ( inst , 'weekHeader' ) + '</th>' : '' ;
275
277
276
- for ( dow ; dow < 7 ; dow ++ ) { // days of the week
278
+ for ( dow = 0 ; dow < 7 ; dow ++ ) { // days of the week
277
279
day = ( dow + firstDay ) % 7 ;
278
280
thead += '<th' + ( ( dow + firstDay + 6 ) % 7 >= 5 ?
279
281
' class="ui-datepicker-week-end"' : '' ) + '>' +
291
293
this . maxRows = numRows ;
292
294
printDate = this . _daylightSavingAdjust ( new Date ( drawYear , drawMonth , 1 - leadDays ) ) ;
293
295
294
- for ( dRow ; dRow < numRows ; dRow ++ ) { // create date picker rows
296
+ for ( dRow = 0 ; dRow < numRows ; dRow ++ ) { // create date picker rows
295
297
calender += '<tr>' ;
296
298
tbody = ! showWeek ? '' : '<td class="ui-datepicker-week-col">' +
297
299
this . _get ( inst , 'calculateWeek' ) ( printDate ) + '</td>' ;
You can’t perform that action at this time.
0 commit comments