From 14176f70d4e2a737241bb316dc271eb72262d036 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 12 Nov 2015 23:34:04 +0000 Subject: [PATCH] Fix status change could not change border when updating --- calendar/js/et2_widget_event.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index 023c4d8b73..2e3c2f30fc 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -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