Monotone-Parent: d63ac588bc9d6090e40d0640860dacaee66d0edb

Monotone-Revision: 20c7862f09b4fde6c2067b6fa562bc2dcd72ae78

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-11-12T20:04:42
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-11-12 20:04:42 +00:00
parent 1e990e3bc9
commit 412d3de100
8 changed files with 48 additions and 40 deletions

View File

@@ -6,6 +6,7 @@ var listFilter = 'view_today';
var listOfSelection = null;
var selectedCalendarCell;
var calendarColorIndex = null;
var showCompletedTasks = 0;
@@ -1459,9 +1460,12 @@ function appendCalendar(folderName, folderPath) {
li.setAttribute("owner", owner);
// Generate new color
if (calendarColorIndex == null)
calendarColorIndex = lis.length;
calendarColorIndex++;
var colorTable = [1, 1, 1];
var color;
var currentValue = lis.length + 1;
var currentValue = calendarColorIndex;
var index = 0;
while (currentValue) {
if (currentValue & 1)