mirror of
				https://github.com/nerzhul/ocsms.git
				synced 2025-10-31 02:17:38 +00:00 
			
		
		
		
	Fix scrolling
This commit is contained in:
		
							parent
							
								
									4ce9fd2530
								
							
						
					
					
						commit
						4e7ea18e89
					
				| @ -42,7 +42,7 @@ var refreshConversation = function() { | |||||||
| 			conversationBuf = formatConversation(jsondata); | 			conversationBuf = formatConversation(jsondata); | ||||||
| 			if (conversationBuf != '') { | 			if (conversationBuf != '') { | ||||||
| 				$('.msg-endtag').before(conversationBuf); | 				$('.msg-endtag').before(conversationBuf); | ||||||
| 				$('#app-content-wrapper').scrollTop(1E10); | 				$('#app-content').scrollTop(1E10); | ||||||
| 			} | 			} | ||||||
| 			 | 			 | ||||||
| 			if ($('#app-content-header').is(':hidden')) { | 			if ($('#app-content-header').is(':hidden')) { | ||||||
| @ -74,7 +74,7 @@ function fetchConversation(phoneNumber) { | |||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
| 			$('#app-content-wrapper').html(conversationBuf); | 			$('#app-content-wrapper').html(conversationBuf); | ||||||
| 			$('#app-content-wrapper').scrollTop(1E10); | 			$('#app-content').scrollTop(1E10); | ||||||
| 
 | 
 | ||||||
| 			curPhoneNumber = phoneNumber; | 			curPhoneNumber = phoneNumber; | ||||||
| 		} | 		} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user