lib/generators/event_calendar/templates/javascript.js in event-calendar-2.3.2 vs lib/generators/event_calendar/templates/javascript.js in event-calendar-2.3.3

- old
+ new

@@ -7,17 +7,19 @@ // highlight events that have a background color $$(".ec-event-bg").each(function(ele) { ele.observe("mouseover", function(evt) { event_id = ele.readAttribute("data-event-id"); - $$(".ec-event-"+event_id).each(function(el) { + event_class_name = ele.readAttribute("data-event-class"); + $$(".ec-"+event_class_name+"-"+event_id).each(function(el) { el.setStyle({ backgroundColor: highlight_color }); }); }); ele.observe("mouseout", function(evt) { - event_color = ele.readAttribute("data-color"); event_id = ele.readAttribute("data-event-id"); - $$(".ec-event-"+event_id).each(function(el) { + event_class_name = ele.readAttribute("data-event-class"); + event_color = ele.readAttribute("data-color"); + $$(".ec-"+event_class_name+"-"+event_id).each(function(el) { el.setStyle({ backgroundColor: event_color }); }); }); }); \ No newline at end of file