Check for existing element in openMenu()
- Removed useless val() call in the various insertFormatting() declarations
This commit is contained in:
		
					parent
					
						
							
								479180ca8e
							
						
					
				
			
			
				commit
				
					
						ecd86ec296
					
				
			
		
					 8 changed files with 8 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -25,7 +25,6 @@ function insertFormatting(BBcode, id) {
 | 
			
		|||
		$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
 | 
			
		||||
		$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
 | 
			
		||||
		openMenu("comment-edit-submit-wrapper-" + id);
 | 
			
		||||
		$("#comment-edit-text-" + id).val(tmpStr);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	textarea = document.getElementById("comment-edit-text-" +id);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue