mirror of
				https://github.com/nerzhul/ocsms.git
				synced 2025-10-28 00:49:11 +00:00 
			
		
		
		
	verify is curPhoneNumber exists before fetching
This commit is contained in:
		
							parent
							
								
									03b6c70562
								
							
						
					
					
						commit
						6e44d16a29
					
				| @ -25,6 +25,11 @@ $.urlParam = function(name){ | ||||
| }; | ||||
| 
 | ||||
| var refreshConversation = function() { | ||||
| 	// if no conversation selected, then don't fetch page
 | ||||
| 	if (curPhoneNumber == null) { | ||||
| 		return; | ||||
| 	} | ||||
| 	 | ||||
| 	$.getJSON(OC.generateUrl('/apps/ocsms/get/conversation'), | ||||
| 		{ | ||||
| 			'phoneNumber': curPhoneNumber, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user