Bug 306241 calendarManagement not looking for contrasting color when null. patch by robin.edrenius@telia.com r=jminta

This commit is contained in:
jminta%gmail.com 2005-08-28 16:31:36 +00:00
parent 66f22a8899
commit ba19a55423

View File

@ -323,8 +323,7 @@ function updateStyleSheetForObject(object) {
if (object.uri) {
color = getCalendarManager().getCalendarPref(object, 'color');
rule.style.backgroundColor = color;
if (color)
rule.style.color = getContrastingTextColor(color);
rule.style.color = getContrastingTextColor(color);
return;
}
var categoryPrefBranch = prefService.getBranch("calendar.category.color.");