Skip to content

Commit

Permalink
Highlight current day, even if it's not working day
Browse files Browse the repository at this point in the history
  • Loading branch information
thamara committed Sep 25, 2019
1 parent 64aab2d commit 149b07c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ th {
vertical-align: center;
}

.summary {
.summary, .today-non-working {
border-bottom: 4px solid rgb(164, 158, 207);
}

Expand Down
2 changes: 1 addition & 1 deletion js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ class Calendar {
trID = ('tr-' + year + '-' + month + '-' + day);

if (!showDay(year, month, day)) {
return '<tr'+ (isToday ? ' class="isToday"' : '') + ' id="' + trID + '">' +
return '<tr'+ (isToday ? ' class="today-non-working"' : '') + ' id="' + trID + '">' +
'<td class="weekday ti">' + this.options.weekabbrs[weekDay] + '</td>' +
'<td class="day ti">' + day + '</td>' +
'<td class="day non-working-day" colspan="6">' + '</td>' +
Expand Down

0 comments on commit 149b07c

Please sign in to comment.