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

git-svn-id: svn://10.0.0.236/trunk@179159 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jminta%gmail.com 2005-08-28 16:31:36 +00:00
parent 3abcd28ef1
commit d65d48b29c

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.");