Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Calendar: Fix border style for multiple months
  • Loading branch information
fnagel committed Feb 5, 2015
commit 854fc85feb59033a96baf501736acd08b4dd7f35
8 changes: 4 additions & 4 deletions ui/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ return $.widget( "ui.calendar", {

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

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