зеркало из https://github.com/mozilla/pjs.git
clear out the attendees before adding the current set. insert mailto: before new attendees
This commit is contained in:
Родитель
8da307c211
Коммит
3ec1501ffd
|
@ -497,7 +497,7 @@ function onOKCommand()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* wire up attendees */
|
/* wire up attendees */
|
||||||
//evenet.clearAttendees();
|
event.removeAllAttendees();
|
||||||
attendeeList = document.getElementById("bucketBody").getElementsByTagName("treecell");
|
attendeeList = document.getElementById("bucketBody").getElementsByTagName("treecell");
|
||||||
for (var i = 0; i < attendeeList.length; i++) {
|
for (var i = 0; i < attendeeList.length; i++) {
|
||||||
label = attendeeList[i].getAttribute("label");
|
label = attendeeList[i].getAttribute("label");
|
||||||
|
@ -1591,7 +1591,8 @@ function processComponentType()
|
||||||
function onIniviteAdd()
|
function onIniviteAdd()
|
||||||
{
|
{
|
||||||
textBox = document.getElementById("invite-email-field");
|
textBox = document.getElementById("invite-email-field");
|
||||||
addAttendee(textBox.value);
|
var email = "mailto:" + textBox.value;
|
||||||
|
addAttendee(email);
|
||||||
}
|
}
|
||||||
|
|
||||||
function addAttendee(email)
|
function addAttendee(email)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче