Skip to content

Commit c29b5e4

Browse files
fnagelscottgonzalez
authored andcommitted
Calendar: Fix border style for multiple months
Ref gh-1432
1 parent 11c1735 commit c29b5e4

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
@@ -191,15 +191,15 @@ return $.widget( "ui.calendar", {
191191

192192
// TODO: Shouldn't we pass date as a parameter to build* fns instead of setting this.date?
193193
this.date = months[ i ];
194+
headerClass = "ui-calendar-header ui-widget-header ui-helper-clearfix";
194195
if ( months[ i ].first ) {
195-
headerClass = "ui-corner-left";
196+
headerClass += " ui-corner-left";
196197
} else if ( months[ i ].last ) {
197-
headerClass = "ui-corner-right";
198+
headerClass += " ui-corner-right";
198199
}
199200

200201
html += "<div class='ui-calendar-group'>" +
201-
"<div class='ui-calendar-header ui-widget-header ui-helper-clearfix " +
202-
headerClass + "'>";
202+
"<div class='" + headerClass + "'>";
203203
if ( months[ i ].first ) {
204204
html += this._buildPreviousLink();
205205
} else if ( months[ i ].last ) {

0 commit comments

Comments
 (0)