Fix bug 459021 - Invite Attendees dialog: automatically expand address book mailing lists. r=philipp,a=philipp
authorPhilippe Martinak <philippe.martinak@i-carre.net>
Tue, 13 Dec 2011 07:11:00 +0100
changeset 9238 374402aa2520d94b0ff1b8bc13a6e97d443987a5
parent 9237 b14a19d774e563933dd43866d4045f398dc2e61c
child 9239 7d46b8c526c9e002b7740e79bcf5989bdf929d93
push id289
push usermozilla@kewis.ch
push dateTue, 20 Dec 2011 15:25:54 +0000
treeherdercomm-aurora@374402aa2520 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilipp, philipp
bugs459021
Fix bug 459021 - Invite Attendees dialog: automatically expand address book mailing lists. r=philipp,a=philipp
calendar/base/content/dialogs/calendar-event-dialog-attendees.xml
--- a/calendar/base/content/dialogs/calendar-event-dialog-attendees.xml
+++ b/calendar/base/content/dialogs/calendar-event-dialog-attendees.xml
@@ -734,18 +734,18 @@
                           let template = document.getAnonymousElementByAttribute(this, "anonid", "item");
                           let currentNode = template.parentNode.childNodes[currentIndex];
                           this._fillListItemWithEntry(currentNode, entries[0], currentIndex);
                           entries.shift();
                           let nextNode = template.parentNode.childNodes[currentIndex+1];
                           currentIndex++;
                           for each (let entry in entries) {
                               currentNode = template.cloneNode(true);
+                              template.parentNode.insertBefore(currentNode, nextNode);
                               this._fillListItemWithEntry(currentNode, entry, currentIndex);
-                              template.parentNode.insertBefore(currentNode, nextNode);
                               currentIndex++;
                           }
                           this.mMaxAttendees += entries.length;
                           for (let i = currentIndex; i <= this.mMaxAttendees; i++) {
                               let row = template.parentNode.childNodes[i];
                               let icon = document.getAnonymousElementByAttribute(row, "anonid", "icon");
                               icon.setAttribute("id", "attendeeCol1#" + i);
                               let input = document.getAnonymousElementByAttribute(row, "anonid", "input");