Skip to content

Commit

Permalink
Fixed a CSS class name error
Browse files Browse the repository at this point in the history
Some movie titles contain the & character, which is not a valid CSS
class name character.
  • Loading branch information
jouni committed Jul 10, 2013
1 parent 02defdb commit 76a1765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/vaadin/demo/dashboard/ScheduleView.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void createEvents() {
bg = "url(" + m.posterUrl + ")";
}

styles += ".v-calendar-event-" + m.titleSlug()
styles += ".v-calendar-event-" + m.titleSlug().replaceAll("&", "_")
+ " .v-calendar-event-content {background-image:" + bg
+ ";}";
}
Expand Down

0 comments on commit 76a1765

Please sign in to comment.