Do not use white for out of view events, it is too hard to see

This commit is contained in:
Nathan Gray 2015-12-15 00:06:00 +00:00
parent c7167979e4
commit 0d10639848

View File

@ -558,7 +558,10 @@ var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM],
indicator.css('top',timegrid.scrolling.height() + timegrid.scrolling.scrollTop()-indicator.height()); indicator.css('top',timegrid.scrolling.height() + timegrid.scrolling.scrollTop()-indicator.height());
} }
// Match color to the event // Match color to the event
if(indicator != '') if(indicator !== '' &&
// Avoid white, which is hard to see
jQuery.Color(event.div.css('border-top-color')).toString() !== jQuery.Color('white').toString()
)
{ {
// Use border-top-color, Firefox doesn't give a value with border-color // Use border-top-color, Firefox doesn't give a value with border-color
indicator.css('border-color', event.div.css('border-top-color')); indicator.css('border-color', event.div.css('border-top-color'));