Bring back tooltips. bug 297818, r=vlad

This commit is contained in:
mvl%exedo.nl 2005-06-16 09:23:41 +00:00
parent 65593914e1
commit f47a45a621
2 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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";