diff --git a/apps/communications/contacts/fb_import.html b/apps/communications/contacts/fb_import.html index 43591bce00a4..982ed9f1db67 100644 --- a/apps/communications/contacts/fb_import.html +++ b/apps/communications/contacts/fb_import.html @@ -112,7 +112,7 @@

Facebook Friends

#email1#

- + + - - -
+
@@ -153,7 +152,6 @@

Facebook Friends

-
diff --git a/apps/communications/contacts/js/fb/friends_list.js b/apps/communications/contacts/js/fb/friends_list.js index 7ae5cb4775ab..b14dcee2c11f 100644 --- a/apps/communications/contacts/js/fb/friends_list.js +++ b/apps/communications/contacts/js/fb/friends_list.js @@ -27,6 +27,8 @@ fbFriends.List = (function() { agroups.forEach(function(group) { // New element appended var ele = utils.templates.append(groupsList, {group: group}, fragment); + // This is the
    and
    is children[0] + var list = ele.children[1]; // Array of friends var friends = groups[group]; @@ -48,13 +50,16 @@ fbFriends.List = (function() { friend.search = utils.text.normalize(searchInfo.join(' ')); // New friend appended - utils.templates.append(ele, friend); - // We check wether this friend was in the AB or not before + utils.templates.append(list, friend); }); + + // Template is deleted from the list + list.removeChild(list.firstElementChild); }); groupsList.innerHTML = ''; // Deleting template groupsList.appendChild(fragment); + FixedHeader.init('#mainContent', '#fixed-container', '.fb-import-list header'); if (typeof cb === 'function') {