mirror of
				https://github.com/nerzhul/ocsms.git
				synced 2025-10-31 10:27:42 +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) { | 				if ($.inArray(peerLabel, bufferedContacts) == -1) { | ||||||
| 					$("div[mailbox-avatar='" + peerLabel + "']").remove(); | 					$("div[mailbox-avatar='" + peerLabel + "']").remove(); | ||||||
| 					$("a[mailbox-label='" + 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') { | 					if (typeof jsondata['photos'][peerLabel] != 'undefined') { | ||||||
| 						peerListBuf += 'style="background-image: url(' + jsondata['photos'][peerLabel] + ');"'; | 						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); | 					$('#app-mailbox-peers ul').prepend(peerListBuf); | ||||||
| 					bufferedContacts.push(peerLabel); | 					bufferedContacts.push(peerLabel); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user