Organizer email address clickable in event editor

Fixes #2010
This commit is contained in:
Francis Lachapelle
2012-10-09 09:12:39 -04:00
parent 16a1b02826
commit 2be6922633
5 changed files with 17 additions and 14 deletions

View File

@@ -479,10 +479,7 @@ function setupAttendeeNode(aNode, aAttendee, isDelegate) {
function initializeAttendeesHref() {
var attendeesHref = $("attendeesHref");
var attendeesLabel = $("attendeesLabel");
var attendeesNames = $("attendeesNames");
if (attendeesHref && !attendeesHref.hasClassName ("nomenu"))
if (attendeesHref && !attendeesHref.hasClassName("nomenu"))
attendeesHref.observe("click", onAttendeesHrefClick, false);
refreshAttendees();
}
@@ -525,9 +522,13 @@ function onAppointmentEditorLoad() {
initTimeWidgets(widgets);
}
var organizer = $("organizerLabel");
if (organizer && organizer.down("a")) {
organizer.down("a").on("click", onMailTo);
}
// Extend JSON representation of attendees
attendees = $H(attendees);
initializeAttendeesHref();
}