mirror of
				https://github.com/nerzhul/ocsms.git
				synced 2025-10-28 00:49:11 +00:00 
			
		
		
		
	Fix loading peerlist
This commit is contained in:
		
							parent
							
								
									3a55c5ca1c
								
							
						
					
					
						commit
						4ce9fd2530
					
				| @ -140,7 +140,7 @@ function changeSelectedConversation(item) { | |||||||
| 	selectedConversation.parent().addClass('selected'); | 	selectedConversation.parent().addClass('selected'); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function fetchInitialPeerList() { | function fetchInitialPeerList(jsondata) { | ||||||
| 	// Use a buffer for better jQuery performance
 | 	// Use a buffer for better jQuery performance
 | ||||||
| 	var peerListBuf = ""; | 	var peerListBuf = ""; | ||||||
| 
 | 
 | ||||||
| @ -167,7 +167,7 @@ function fetchInitialPeerList() { | |||||||
| 	$(document).ready(function () { | 	$(document).ready(function () { | ||||||
| 		// Now bind the events when we click on the phone number
 | 		// Now bind the events when we click on the phone number
 | ||||||
| 		$.getJSON(OC.generateUrl('/apps/ocsms/get/peerlist'), function(jsondata, status) { | 		$.getJSON(OC.generateUrl('/apps/ocsms/get/peerlist'), function(jsondata, status) { | ||||||
| 			fetchInitialPeerList(); | 			fetchInitialPeerList(jsondata); | ||||||
| 
 | 
 | ||||||
| 			// Now bind the events when we click on the phone number
 | 			// Now bind the events when we click on the phone number
 | ||||||
| 			$('#app-mailbox-peers').find('a[mailbox-navigation]').on('click', function (event) { | 			$('#app-mailbox-peers').find('a[mailbox-navigation]').on('click', function (event) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user