Skip to content

Commit 66bfbe7

Browse files
committed
Calendar: Fix border style for multiple months
1 parent ef0c81a commit 66bfbe7

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

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

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

0 commit comments

Comments
 (0)