This commit is contained in:
mikep%oeone.com 2002-08-26 18:47:22 +00:00
Родитель 253d2cd436
Коммит 425d8acdb4
3 изменённых файлов: 38 добавлений и 4 удалений

Просмотреть файл

@ -338,15 +338,23 @@ function setUnifinderToDoTreeItem( treeItem, calendarToDo )
var startDate = new Date( calendarToDo.start.getTime() );
var dueDate = new Date( calendarToDo.due.getTime() );
var tonightMidnight = new Date( now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59 );
var tonightMidnight = new Date( now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 00 );
var yesterdayMidnight = new Date( now.getFullYear(), now.getMonth(), ( now.getDate() - 1 ), 23, 59, 00 );
if( tonightMidnight.getTime() > dueDate.getTime() )
{
/* for setting some css */
textProperties = textProperties + " overdue";
} else
textProperties += " overdue";
} else if ( dueDate.getFullYear() == now.getFullYear() &&
dueDate.getMonth() == now.getMonth() &&
dueDate.getDate() == now.getDate() )
{
textProperties = textProperties + " inprogress";
textProperties += " duetoday";
}
else
{
textProperties += " inprogress";
}
if(calendarToDo.priority > 0 && calendarToDo.priority < 5)
textProperties = textProperties + " highpriority";

Просмотреть файл

@ -1077,6 +1077,11 @@ treechildren:-moz-tree-cell-text(overdue)
color : red;
}
treechildren:-moz-tree-cell-text(duetoday)
{
color : blue;
}
treechildren:-moz-tree-cell-text(completed)
{
text-decoration : line-through;
@ -1102,10 +1107,18 @@ treechildren:-moz-tree-image(unifinder-todo-tree-col-completed, overdue) {
list-style-image : url("chrome://global/skin/checkbox/cbox.gif");
}
treechildren:-moz-tree-image(unifinder-todo-tree-col-completed, duetoday) {
list-style-image : url("chrome://global/skin/checkbox/cbox.gif");
}
treechildren:-moz-tree-image(unifinder-todo-tree-col-completed, overdue, current) {
list-style-image : url("chrome://global/skin/checkbox/cbox-act.gif");
}
treechildren:-moz-tree-image(unifinder-todo-tree-col-completed, duetoday, current) {
list-style-image : url("chrome://global/skin/checkbox/cbox-act.gif");
}
treechildren:-moz-tree-image(unifinder-todo-tree-col-completed, completed) {
list-style-image : url("chrome://global/skin/checkbox/cbox-check.gif");
}

Просмотреть файл

@ -1090,6 +1090,11 @@ treechildren:-moz-tree-cell-text(overdue)
color : red;
}
treechildren:-moz-tree-cell-text(duetoday)
{
color : blue;
}
treechildren:-moz-tree-cell-text(completed)
{
text-decoration : line-through;
@ -1115,10 +1120,18 @@ treechildren:-moz-tree-image(unifinder-todo-tree-col-completed, overdue) {
list-style-image : url("chrome://global/skin/checkbox/cbox.gif");
}
treechildren:-moz-tree-image(unifinder-todo-tree-col-completed, duetoday) {
list-style-image : url("chrome://global/skin/checkbox/cbox.gif");
}
treechildren:-moz-tree-image(unifinder-todo-tree-col-completed, overdue, current) {
list-style-image : url("chrome://global/skin/checkbox/cbox-act.gif");
}
treechildren:-moz-tree-image(unifinder-todo-tree-col-completed, duetoday, current) {
list-style-image : url("chrome://global/skin/checkbox/cbox-act.gif");
}
treechildren:-moz-tree-image(unifinder-todo-tree-col-completed, completed) {
list-style-image : url("chrome://global/skin/checkbox/cbox-check.gif");
}