зеркало из https://github.com/mozilla/pjs.git
Fixing bug 164598.
This commit is contained in:
Родитель
253d2cd436
Коммит
425d8acdb4
|
@ -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");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче