mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 07:56:23 +00:00
Js fix for checkNewMessages
This commit is contained in:
parent
c9fa6a7fc9
commit
0e92aa3779
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user