Skip to content

Commit ef1ce3c

Browse files
committed
Calendar: Fix border style for multiple months
1 parent aaaf577 commit ef1ce3c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/calendar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,15 @@ return $.widget( "ui.calendar", {
195195

196196
// TODO: Shouldn't we pass date as a parameter to build* fns instead of setting this.date?
197197
this.date = months[ i ];
198+
headerClass = "ui-calendar-header ui-widget-header ui-helper-clearfix";
198199
if ( months[ i ].first ) {
199-
headerClass = "ui-corner-left";
200+
headerClass += " ui-corner-left";
200201
} else if ( months[ i ].last ) {
201-
headerClass = "ui-corner-right";
202+
headerClass += " ui-corner-right";
202203
}
203204

204205
html += "<div class='ui-calendar-group'>" +
205-
"<div class='ui-calendar-header ui-widget-header ui-helper-clearfix " +
206-
headerClass + "'>";
206+
"<div class='" + headerClass + "'>";
207207
if ( months[ i ].first ) {
208208
html += this._buildPreviousLink();
209209
} else if ( months[ i ].last ) {

0 commit comments

Comments
 (0)