Adding in styles for completed items, as per bug 155187.

This commit is contained in:
mikep%oeone.com 2002-07-02 13:52:07 +00:00
Родитель 19b6fb6034
Коммит 1aa365db1e
4 изменённых файлов: 38 добавлений и 1 удалений

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

@ -78,7 +78,7 @@ h1 {
<td id="mozver">
<h1>
<a id="mozlink" href="http://www.mozilla.org/projects/calendar/" target="_new">Mozilla Calendar 2002061709-cal</a>
<a id="mozlink" href="http://www.mozilla.org/projects/calendar/" target="_new">Mozilla Calendar 2002062715-cal</a>
</h1>
<script type="application/x-javascript">
// using try..catch to handle empty useragents and other cases where the regex fails to apply

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

@ -216,12 +216,25 @@ function refreshToDoTree( eventArray )
var completed = calendarToDo.completed.getTime();
if( completed > 0 )
{
treeItem.getElementsByTagName( "checkbox" )[0].checked = true;
/* for setting some css */
treeItem.setAttribute( "completed", "true" );
}
treeItem.getElementsByAttribute( "name", "title-listcell" )[0].setAttribute( "label", calendarToDo.title );
var dueDate = new Date( calendarToDo.due.getTime() );
var now = new Date();
if( now.getTime() > dueDate.getTime() )
{
/* for setting some css */
treeItem.setAttribute( "overdue", "true" );
}
var FormattedDueDate = formatUnifinderEventDate( dueDate );
treeItem.getElementsByAttribute( "name", "due-date-listcell" )[0].setAttribute( "label", FormattedDueDate );

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

@ -1123,3 +1123,14 @@
-moz-box-align : start;
}
/* TO DO ITEMS */
#unifinder-todo-listbox > listitem[overdue="true"] > listcell
{
color : red;
}
#unifinder-todo-listbox > listitem[completed="true"] > listcell
{
text-decoration : line-through;
}

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

@ -1127,4 +1127,17 @@
padding-left : 4px;
font-family : Arial, Helvetica;
-moz-box-align : start;
}
/* TO DO ITEMS */
#unifinder-todo-listbox > listitem[overdue="true"] > listcell
{
color : red;
}
#unifinder-todo-listbox > listitem[completed="true"] > listcell
{
text-decoration : line-through;
}