Fix bug 543744 - Add calendar name to event tooltip information. r=philipp, p=c.humber@free.fr and grahamperrin@gmail.com
This commit is contained in:
Родитель
e4c8210fc6
Коммит
33fb30d4f5
|
@ -157,20 +157,22 @@ tooNewSchemaButtonQuit=Quit %1$S
|
|||
eventUntitled=Untitled
|
||||
|
||||
# Tooltips of events or todos
|
||||
tooltipTitle =Title:
|
||||
tooltipLocation =Location:
|
||||
tooltipTitle=Title:
|
||||
tooltipLocation=Location:
|
||||
# event date, usually an interval, such as
|
||||
# Date: 7:00--8:00 Thu 9 Oct 2011
|
||||
# Date: Thu 9 Oct 2000 -- Fri 10 Oct 2000
|
||||
tooltipDate =Date:
|
||||
tooltipDate=Date:
|
||||
# event calendar name
|
||||
tooltipCalName=Calendar Name:
|
||||
# event status: tentative, confirmed, cancelled
|
||||
tooltipStatus =Status:
|
||||
tooltipStatus=Status:
|
||||
# task/todo fields
|
||||
# start date time, due date time, task priority number, completed date time
|
||||
tooltipStart =Start:
|
||||
tooltipDue =Due:
|
||||
tooltipPriority =Priority:
|
||||
tooltipPercent =% Complete:
|
||||
tooltipStart=Start:
|
||||
tooltipDue=Due:
|
||||
tooltipPriority=Priority:
|
||||
tooltipPercent=% Complete:
|
||||
tooltipCompleted=Completed:
|
||||
|
||||
#File commands and dialogs
|
||||
|
|
|
@ -119,6 +119,12 @@ function getPreviewForTask( toDoItem )
|
|||
hasHeader = true;
|
||||
}
|
||||
|
||||
// First try to get calendar name appearing in tooltip
|
||||
if (toDoItem.calendar.name) {
|
||||
let calendarNameString = toDoItem.calendar.name;
|
||||
boxAppendLabeledText(vbox, "tooltipCalName", calendarNameString);
|
||||
}
|
||||
|
||||
if (toDoItem.entryDate && toDoItem.entryDate.isValid)
|
||||
{
|
||||
boxAppendLabeledDateTime(vbox, "tooltipStart", toDoItem.entryDate);
|
||||
|
@ -219,6 +225,12 @@ function getPreviewForEvent( aEvent) {
|
|||
}
|
||||
boxAppendLabeledDateTimeInterval(vbox, "tooltipDate", event);
|
||||
|
||||
// First try to get calendar name appearing in tooltip
|
||||
if (event.calendar.name) {
|
||||
let calendarNameString = event.calendar.name;
|
||||
boxAppendLabeledText(vbox, "tooltipCalName", calendarNameString);
|
||||
}
|
||||
|
||||
if (event.status && event.status != "NONE") {
|
||||
var statusString = getEventStatusString(event);
|
||||
boxAppendLabeledText(vbox, "tooltipStatus", statusString);
|
||||
|
|
Загрузка…
Ссылка в новой задаче