mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-26 10:58:49 +00:00
Fixed issue on iOS 9
This commit is contained in:
parent
40cdb339c3
commit
9bfd55c7df
@ -115,7 +115,7 @@ ComunicWeb.components.conversations.unreadDropdown = {
|
||||
var usersID = [];
|
||||
|
||||
//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];
|
||||
|
||||
var userID = entry.userID;
|
||||
@ -153,7 +153,7 @@ ComunicWeb.components.conversations.unreadDropdown = {
|
||||
target.innerHTML = "";
|
||||
|
||||
//Process each conversation
|
||||
for (let index = 0; index < conversations.length; index++) {
|
||||
for (var index = 0; index < conversations.length; index++) {
|
||||
|
||||
//Get the conversation
|
||||
const conversation = conversations[index];
|
||||
|
@ -179,7 +179,7 @@ ComunicWeb.components.friends.listModal = {
|
||||
}
|
||||
|
||||
//Parse the list of friends
|
||||
ids.forEach(id => {
|
||||
ids.forEach(function(id){
|
||||
|
||||
//Display the user
|
||||
const userContainer = createElem2({
|
||||
@ -253,7 +253,7 @@ ComunicWeb.components.friends.listModal = {
|
||||
}
|
||||
|
||||
//Display each friend
|
||||
list.forEach(friend => {
|
||||
list.forEach(function(friend){
|
||||
|
||||
//Display the friend
|
||||
ComunicWeb.components.friends.ui.show_personnal_friend(listTarget, friend, users["user-"+friend.ID_friend]);
|
||||
|
@ -16,7 +16,7 @@ ComunicWeb.components.friends.utils = {
|
||||
|
||||
//Parse the list
|
||||
usersID = [];
|
||||
list.forEach(friend => {
|
||||
list.forEach(function(friend){
|
||||
//Extract user id
|
||||
usersID.push(friend.ID_friend);
|
||||
});
|
||||
|
@ -69,7 +69,7 @@ ComunicWeb.components.langPicker = {
|
||||
];
|
||||
|
||||
var buttons = [];
|
||||
langs.forEach(lang => {
|
||||
langs.forEach(function(lang){
|
||||
|
||||
const button = createElem2({
|
||||
appendTo: modalBody,
|
||||
@ -118,7 +118,7 @@ ComunicWeb.components.langPicker = {
|
||||
//Restart the app
|
||||
ComunicWeb.common.system.reset();
|
||||
}
|
||||
buttons.forEach(btn => {btn.onclick = respond;});
|
||||
buttons.forEach(function(btn){btn.onclick = respond;});
|
||||
|
||||
//Make the buttons live
|
||||
cancelButton.onclick = closeModal;
|
||||
|
@ -171,7 +171,7 @@ ComunicWeb.components.notifications.dropdown = {
|
||||
list.innerHTML = "";
|
||||
|
||||
//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];
|
||||
|
||||
//Display the notification
|
||||
|
@ -16,7 +16,7 @@ ComunicWeb.components.notifications.utils = {
|
||||
|
||||
var users = [];
|
||||
|
||||
for (let index = 0; index < list.length; index++) {
|
||||
for (var index = 0; index < list.length; index++) {
|
||||
const notif = list[index];
|
||||
|
||||
if(!users.includes(notif.from_user_id))
|
||||
|
@ -121,7 +121,7 @@ ComunicWeb.pages.latestPosts.main = {
|
||||
_display_list: function(list, target){
|
||||
|
||||
//Process the list of posts
|
||||
for (let index = 0; index < list.length; index++) {
|
||||
for (var index = 0; index < list.length; index++) {
|
||||
|
||||
//Display the post
|
||||
ComunicWeb.components.posts.ui.display_post(list[index], target);
|
||||
|
Loading…
Reference in New Issue
Block a user