mirror of
				https://github.com/nerzhul/ocsms.git
				synced 2025-10-27 08:27:52 +00:00 
			
		
		
		
	Fix incorrect div id for auto scroll to bottom (#245)
This commit is contained in:
		
							parent
							
								
									33e5f5926d
								
							
						
					
					
						commit
						e0508145dd
					
				| @ -95,7 +95,7 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile' | |||||||
| 						$scope.isConvLoading = false; | 						$scope.isConvLoading = false; | ||||||
| 					}); | 					}); | ||||||
| 
 | 
 | ||||||
| 					$('#app-content').scrollTop(1E10); | 					$('#ocsms-app-content').scrollTop(1E10); | ||||||
| 				} | 				} | ||||||
| 			); | 			); | ||||||
| 		}; | 		}; | ||||||
| @ -109,7 +109,7 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile' | |||||||
| 					var fmt = $scope.formatConversation(jsondata); | 					var fmt = $scope.formatConversation(jsondata); | ||||||
| 					var conversationBuf = fmt[1]; | 					var conversationBuf = fmt[1]; | ||||||
| 					if (conversationBuf === true) { | 					if (conversationBuf === true) { | ||||||
| 						$('#app-content').scrollTop(1E10); | 						$('#ocsms-app-content').scrollTop(1E10); | ||||||
| 						// This will blink the tab because there is new messages
 | 						// This will blink the tab because there is new messages
 | ||||||
| 						if (document.hasFocus() === false) { | 						if (document.hasFocus() === false) { | ||||||
| 							Sms.unreadCountCurrentConv += parseInt(fmt[0]); | 							Sms.unreadCountCurrentConv += parseInt(fmt[0]); | ||||||
| @ -171,7 +171,7 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile' | |||||||
| 
 | 
 | ||||||
| 					/* | 					/* | ||||||
| 					* Decrement notification step counter, but stop it a zero | 					* Decrement notification step counter, but stop it a zero | ||||||
| 					* Stop at zero permit to notify instanly the user when  | 					* Stop at zero permit to notify instanly the user when | ||||||
| 					* there is new messages in all conversations | 					* there is new messages in all conversations | ||||||
| 					*/ | 					*/ | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user