Fix bug 719789 - The appointment mouseover should show the organizer. r=philipp
authorVeeraya Pupatwibul <pookveeraya@gmail.com>
Mon, 20 Feb 2012 10:27:37 +0100
changeset 10865 cf3f1b5da0918b3df8f7273fbfa51e29af584ae1
parent 10864 837541d5646a9bb22d9abc969ddb5d36f25d4abf
child 10866 01e1c291493e1fd9970c3a3af6523fe87e8be71e
push id463
push userbugzilla@standard8.plus.com
push dateTue, 24 Apr 2012 17:34:51 +0000
treeherdercomm-beta@e53588e8f7b0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilipp
bugs719789
Fix bug 719789 - The appointment mouseover should show the organizer. r=philipp
calendar/locales/en-US/chrome/calendar/calendar.properties
calendar/resources/content/mouseoverPreviews.js
--- a/calendar/locales/en-US/chrome/calendar/calendar.properties
+++ b/calendar/locales/en-US/chrome/calendar/calendar.properties
@@ -168,16 +168,18 @@ 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:
 # event calendar name
 tooltipCalName=Calendar Name:
 # event status: tentative, confirmed, cancelled
 tooltipStatus=Status:
+# event organizer
+tooltipOrganizer=Organizer:
 # task/todo fields
 # start date time, due date time, task priority number, completed date time
 tooltipStart=Start:
 tooltipDue=Due:
 tooltipPriority=Priority:
 tooltipPercent=% Complete:
 tooltipCompleted=Completed:
 
--- a/calendar/resources/content/mouseoverPreviews.js
+++ b/calendar/resources/content/mouseoverPreviews.js
@@ -231,16 +231,21 @@ function getPreviewForEvent( aEvent) {
       boxAppendLabeledText(vbox, "tooltipCalName", calendarNameString);
     }
 
     if (event.status && event.status != "NONE") {
       var statusString = getEventStatusString(event);
       boxAppendLabeledText(vbox, "tooltipStatus", statusString);
     }
 
+    if (event.organizer && event.getAttendees({}).length > 0) {
+      let organizer = event.organizer;
+      boxAppendLabeledText(vbox, "tooltipOrganizer", organizer);
+    }
+
     var description = event.getProperty("DESCRIPTION");
     if (description) {
       boxAppendBodySeparator(vbox);
       // display wrapped description lines, like body of message below headers
       boxAppendBody(vbox, description);
     }
     return ( vbox );
   } else {