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:
parent
3abcd28ef1
commit
d65d48b29c
@ -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.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user