Fixed issue on iOS 9

This commit is contained in:
Pierre 2018-04-24 20:19:00 +02:00
parent 40cdb339c3
commit 9bfd55c7df
7 changed files with 10 additions and 10 deletions

View File

@ -115,7 +115,7 @@ ComunicWeb.components.conversations.unreadDropdown = {
var usersID = []; var usersID = [];
//Process the list of conversations //Process the list of conversations
for (let index = 0; index < conversations.length; index++) { for (var index = 0; index < conversations.length; index++) {
const entry = conversations[index]; const entry = conversations[index];
var userID = entry.userID; var userID = entry.userID;
@ -153,7 +153,7 @@ ComunicWeb.components.conversations.unreadDropdown = {
target.innerHTML = ""; target.innerHTML = "";
//Process each conversation //Process each conversation
for (let index = 0; index < conversations.length; index++) { for (var index = 0; index < conversations.length; index++) {
//Get the conversation //Get the conversation
const conversation = conversations[index]; const conversation = conversations[index];

View File

@ -179,7 +179,7 @@ ComunicWeb.components.friends.listModal = {
} }
//Parse the list of friends //Parse the list of friends
ids.forEach(id => { ids.forEach(function(id){
//Display the user //Display the user
const userContainer = createElem2({ const userContainer = createElem2({
@ -253,7 +253,7 @@ ComunicWeb.components.friends.listModal = {
} }
//Display each friend //Display each friend
list.forEach(friend => { list.forEach(function(friend){
//Display the friend //Display the friend
ComunicWeb.components.friends.ui.show_personnal_friend(listTarget, friend, users["user-"+friend.ID_friend]); ComunicWeb.components.friends.ui.show_personnal_friend(listTarget, friend, users["user-"+friend.ID_friend]);

View File

@ -16,7 +16,7 @@ ComunicWeb.components.friends.utils = {
//Parse the list //Parse the list
usersID = []; usersID = [];
list.forEach(friend => { list.forEach(function(friend){
//Extract user id //Extract user id
usersID.push(friend.ID_friend); usersID.push(friend.ID_friend);
}); });

View File

@ -69,7 +69,7 @@ ComunicWeb.components.langPicker = {
]; ];
var buttons = []; var buttons = [];
langs.forEach(lang => { langs.forEach(function(lang){
const button = createElem2({ const button = createElem2({
appendTo: modalBody, appendTo: modalBody,
@ -118,7 +118,7 @@ ComunicWeb.components.langPicker = {
//Restart the app //Restart the app
ComunicWeb.common.system.reset(); ComunicWeb.common.system.reset();
} }
buttons.forEach(btn => {btn.onclick = respond;}); buttons.forEach(function(btn){btn.onclick = respond;});
//Make the buttons live //Make the buttons live
cancelButton.onclick = closeModal; cancelButton.onclick = closeModal;

View File

@ -171,7 +171,7 @@ ComunicWeb.components.notifications.dropdown = {
list.innerHTML = ""; list.innerHTML = "";
//Process the list of notifications //Process the list of notifications
for (let i = 0; i < result.length; i++) { for (var i = 0; i < result.length; i++) {
const notification = result[i]; const notification = result[i];
//Display the notification //Display the notification

View File

@ -16,7 +16,7 @@ ComunicWeb.components.notifications.utils = {
var users = []; var users = [];
for (let index = 0; index < list.length; index++) { for (var index = 0; index < list.length; index++) {
const notif = list[index]; const notif = list[index];
if(!users.includes(notif.from_user_id)) if(!users.includes(notif.from_user_id))

View File

@ -121,7 +121,7 @@ ComunicWeb.pages.latestPosts.main = {
_display_list: function(list, target){ _display_list: function(list, target){
//Process the list of posts //Process the list of posts
for (let index = 0; index < list.length; index++) { for (var index = 0; index < list.length; index++) {
//Display the post //Display the post
ComunicWeb.components.posts.ui.display_post(list[index], target); ComunicWeb.components.posts.ui.display_post(list[index], target);