mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-28 20:56:24 +00:00
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:
@@ -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" });
|
||||
|
||||
Reference in New Issue
Block a user