mirror of
				https://github.com/ether/etherpad-lite.git
				synced 2025-11-04 10:11:33 +01:00 
			
		
		
		
	option to stop autoscroll
This commit is contained in:
		
							parent
							
								
									beb6378656
								
							
						
					
					
						commit
						6726ea6632
					
				@ -62,8 +62,11 @@ var chat = (function()
 | 
			
		||||
    },
 | 
			
		||||
    scrollDown: function()
 | 
			
		||||
    {
 | 
			
		||||
      if($('#chatbox').css("display") != "none")
 | 
			
		||||
        $('#chattext').animate({scrollTop: $('#chattext')[0].scrollHeight}, "slow");
 | 
			
		||||
      if($('#options-scrollchat').is(':checked')){
 | 
			
		||||
        if($('#chatbox').css("display") != "none"){
 | 
			
		||||
          $('#chattext').animate({scrollTop: $('#chattext')[0].scrollHeight}, "slow");
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }, 
 | 
			
		||||
    send: function()
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
@ -168,6 +168,10 @@
 | 
			
		||||
                    <input type="checkbox" id="options-linenoscheck" checked>
 | 
			
		||||
                    <label for="options-linenoscheck">Line numbers</label>
 | 
			
		||||
                </p>
 | 
			
		||||
                <p>
 | 
			
		||||
                    <input type="checkbox" id="options-scrollchat" checked>
 | 
			
		||||
                    <label for="options-scrollchat">Automatically Scroll Chat</label>
 | 
			
		||||
                </p>
 | 
			
		||||
                <p>
 | 
			
		||||
                    Font type:
 | 
			
		||||
                    <select id="viewfontmenu">
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user