Skip to content

Commit

Permalink
CSS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tbee committed Dec 24, 2013
1 parent 6362a93 commit 0f9bbce
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,7 @@ private void refreshDayButtonsVisibilityAndLabel()
ToggleButton lToggleButton = dayButtons.get(lIdx);
lToggleButton.setVisible(true);
lToggleButton.setText("" + i);
lToggleButton.getStyleClass().remove("weekend");
lToggleButton.getStyleClass().remove("weekday");
lToggleButton.getStyleClass().removeAll("weekend", "weekday");
lToggleButton.getStyleClass().add(isWeekdayWeekend(lIdx % 7) ? "weekend" : "weekday");
lToggleButton.setDisable( disabledCalendars != null && find(disabledCalendars, lCalendar) != null );

Expand All @@ -815,14 +814,11 @@ private void refreshDayButtonsVisibilityAndLabel()
}

// highligh
lToggleButton.getStyleClass().remove("highlight");
if (highlightedCalendars != null && find(highlightedCalendars, lCalendar) != null)
{
lToggleButton.getStyleClass().add("highlight");
}
else
{
lToggleButton.getStyleClass().remove("highlight");
}
}

// hide the trailing buttons
Expand Down

0 comments on commit 0f9bbce

Please sign in to comment.