mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 11:01:40 +00:00
Bring back tooltips. bug 297818, r=vlad
This commit is contained in:
parent
65593914e1
commit
f47a45a621
@ -61,9 +61,9 @@ function onMouseOverGridOccurrence( occurrenceBoxMouseEvent )
|
||||
if ("occurrence" in occurrenceBoxMouseEvent.currentTarget) {
|
||||
// occurrence of repeating event or todo
|
||||
var occurrence = occurrenceBoxMouseEvent.currentTarget.occurrence;
|
||||
var item = occurrence.item;
|
||||
var start = occurrence.occurrenceStartDate.jsDate;
|
||||
var endEx = occurrence.occurrenceEndDate.jsDate;
|
||||
var item = occurrence;
|
||||
var start = occurrence.startDate.jsDate;
|
||||
var endEx = occurrence.endDate.jsDate;
|
||||
|
||||
const toolTip = document.getElementById( "gridOccurrenceTooltip" );
|
||||
var holderBox = null;
|
||||
@ -144,14 +144,14 @@ function getPreviewForTask( toDoItem )
|
||||
hasHeader = true;
|
||||
}
|
||||
|
||||
if (toDoItem.entryDate.isValid)
|
||||
if (toDoItem.entryDate && toDoItem.entryDate.isValid)
|
||||
{
|
||||
var startDate = toDoItem.entryDate.jsDate;
|
||||
boxAppendLabeledDateTime(vbox, "tooltipStart", startDate, false);
|
||||
hasHeader = true;
|
||||
}
|
||||
|
||||
if (toDoItem.dueDate.isValid)
|
||||
if (toDoItem.dueDat && toDoItem.dueDate.isValid)
|
||||
{
|
||||
var dueDate = toDoItem.dueDate.jsDate;
|
||||
boxAppendLabeledDateTime(vbox, "tooltipDue", dueDate, false);
|
||||
|
@ -274,7 +274,7 @@ function ToDoProgressAtom( aTodo )
|
||||
if (completed)
|
||||
return "completed";
|
||||
|
||||
if (aTodo.dueDate.isValid) {
|
||||
if (aTodo.dueDate && aTodo.dueDate.isValid) {
|
||||
if (aTodo.dueDate.jsDate.getTime() < now.getTime())
|
||||
return "overdue";
|
||||
else if (aTodo.dueDate.year == now.getFullYear() &&
|
||||
@ -283,7 +283,7 @@ function ToDoProgressAtom( aTodo )
|
||||
return "duetoday";
|
||||
}
|
||||
|
||||
if (aTodo.entryDate.isValid &&
|
||||
if (aTodo.entryDate && aTodo.entryDate.isValid &&
|
||||
aTodo.entryDate.jsDate.getTime() < now.getTime())
|
||||
return "inprogress";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user