Fix bug 459021 - Invite Attendees dialog: automatically expand address book mailing lists. r=philipp
authorPhilippe Martinak <philippe.martinak@i-carre.net>
Tue, 13 Dec 2011 07:11:00 +0100
changeset 9021 de2f178475b90ca6c0eea14ff8bb188bdc4fdc7d
parent 9020 d33123c68cf2515f8a2c30b4ec1cff4373944b3f
child 9022 26104d8798a2715415d0e21af67ab07d45ec26ae
push id6913
push usermozilla@kewis.ch
push dateTue, 20 Dec 2011 15:20:26 +0000
treeherdercomm-central@26104d8798a2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilipp
bugs459021
Fix bug 459021 - Invite Attendees dialog: automatically expand address book mailing lists. r=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");