mirror of
				https://github.com/nerzhul/ocsms.git
				synced 2025-10-31 02:17:38 +00:00 
			
		
		
		
	Show contact names instead of numbers
This commit is contained in:
		
							parent
							
								
									71d6ed693b
								
							
						
					
					
						commit
						922a5bf853
					
				
							
								
								
									
										11
									
								
								js/script.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								js/script.js
									
									
									
									
									
								
							| @ -124,7 +124,16 @@ function changeSelectedConversation(item) { | |||||||
| 			var peerListBuf = ""; | 			var peerListBuf = ""; | ||||||
| 
 | 
 | ||||||
| 			$.each(jsondata['phonelist'], function(id, val) { | 			$.each(jsondata['phonelist'], function(id, val) { | ||||||
| 				peerListBuf += '<li><a href="#" mailbox-navigation="' + val + '">' + val + '</a></li>'; | 				var fn, peerLabel; | ||||||
|  | 				if (typeof jsondata['contacts'][val] == 'undefined') { | ||||||
|  | 					fn = ''; | ||||||
|  | 					peerLabel = val; | ||||||
|  | 				} | ||||||
|  | 				else { | ||||||
|  | 					fn = jsondata['contacts'][val]; | ||||||
|  | 					peerLabel = fn; | ||||||
|  | 				} | ||||||
|  | 				peerListBuf += '<li><a href="#" mailbox-navigation="' + val + '">' + peerLabel + '</a></li>'; | ||||||
| 			}); | 			}); | ||||||
| 
 | 
 | ||||||
| 			$('#app-mailbox-peers ul').html(peerListBuf); | 			$('#app-mailbox-peers ul').html(peerListBuf); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user