1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 16:06:15 +00:00

Js fix for checkNewMessages

This commit is contained in:
Loic Blot 2015-01-06 13:55:12 +00:00
parent c9fa6a7fc9
commit 0e92aa3779

View File

@ -90,11 +90,11 @@ var checkNewMessages = function() {
if ($.inArray(peerLabel, bufferedContacts) == -1) {
$("div[mailbox-avatar='" + peerLabel + "']").remove();
$("a[mailbox-label='" + peerLabel + "']").remove();
peerListBuf += '<li><div class="ocsms-plavatar"';
peerListBuf = '<li><div class="ocsms-plavatar"';
if (typeof jsondata['photos'][peerLabel] != 'undefined') {
peerListBuf += 'style="background-image: url(' + jsondata['photos'][peerLabel] + ');"';
}
peerListBuf = '></div><a href="#" mailbox-navigation="' + idxVal2 + '" style="font-weight: bold;" mailbox-label="' + peerLabel + '">' + peerLabel + ' (' + val + ')</a></li>';
peerListBuf += '></div><a href="#" mailbox-navigation="' + idxVal2 + '" style="font-weight: bold;" mailbox-label="' + peerLabel + '">' + peerLabel + ' (' + val + ')</a></li>';
$('#app-mailbox-peers ul').prepend(peerListBuf);
bufferedContacts.push(peerLabel);