Fix status change could not change border when updating

This commit is contained in:
Nathan Gray 2015-11-12 23:34:04 +00:00
parent 4565bf4779
commit 14176f70d4

View File

@ -254,10 +254,7 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
if(jQuery.Color("rgba(0,0,0,0)").toRgbaString() != jQuery.Color(this.div,'background-color').toRgbaString())
{
// Most statuses use colored borders
if(status_class === 'calendar_calEventAllAccepted')
{
this.div.css('border-color', this.div.css('background-color'));
}
this.div.css('border-color',status_class === 'calendar_calEventAllAccepted' ? this.div.css('background-color') : '');
// Set title color based on background brightness
this.title