Merge branch '1.11.x' of github.com:chamilo/chamilo-lms into 1.11.x

pull/3312/head
Julio Montoya 5 years ago
commit 092ccdd7a4
  1. 20
      main/template/default/chat/chat.tpl

@ -81,14 +81,18 @@ $(function () {
friend: ChChat.currentFriend friend: ChChat.currentFriend
}) })
.done(function (response) { .done(function (response) {
if (response.data.history) { try {
ChChat._historySize = response.data.oldFileSize; if (response.data.history) {
ChChat.setHistory(response.data.history); ChChat._historySize = response.data.oldFileSize;
} ChChat.setHistory(response.data.history);
}
if (response.data.userList) {
ChChat.usersOnline = response.data.usersOnline; if (response.data.userList) {
ChChat.setConnectedUsers(response.data.userList); ChChat.usersOnline = response.data.usersOnline;
ChChat.setConnectedUsers(response.data.userList);
}
} catch (error) {
console.error(error);
} }
}); });
}, },

Loading…
Cancel
Save