Monotone-Parent: 90f26599c1d1dea2ba798615fd3a3e18223163e7

Monotone-Revision: 55d271fb80220cdbc9bd83cfc50ed13ca7239cb7

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-11-21T18:58:03
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-11-21 18:58:03 +00:00
parent 6ad1a55df5
commit 8069fa646e
4 changed files with 70 additions and 77 deletions

View File

@@ -81,22 +81,16 @@ function refreshAttendees() {
var attendeesLabel = $("attendeesLabel");
var attendeesNames = $("attendeesNames");
var attendeesHref = $("attendeesHref");
var organizerListLabel = $("organizerListLabel");
log ("label: "+ organizerListLabel);
for (var i = 0; i < attendeesHref.childNodes.length; i++)
attendeesHref.removeChild(attendeesHref.childNodes[i]);
if (attendeesNames.value.length > 0) {
attendeesHref.appendChild(document.createTextNode(attendeesNames.value));
attendeesLabel.setStyle({ display: "block" });
if (organizerListLabel)
organizerListLabel.setStyle({ display: "block" });
}
else {
attendeesLabel.setStyle({ display: "none" });
if (organizerListLabel)
organizerListLabel.setStyle({ display: "none" });
}
}
@@ -104,12 +98,9 @@ function initializeAttendeesHref() {
var attendeesHref = $("attendeesHref");
var attendeesLabel = $("attendeesLabel");
var attendeesNames = $("attendeesNames");
var organizerListLabel = $("organizerListLabel");
Event.observe(attendeesHref, "click", onPopupAttendeesWindow, false);
if (attendeesNames.value.length > 0) {
if (organizerListLabel)
organizerListLabel.setStyle({ display: "block" });
attendeesHref.setStyle({ textDecoration: "underline", color: "#00f" });
attendeesHref.appendChild(document.createTextNode(attendeesNames.value));
attendeesLabel.setStyle({ display: "block" });