mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Issue #26246: Set initial value of the hidden attr when creating copy button.
Patch by Liang-Bo Wang.
This commit is contained in:
		
						commit
						ff47cfbc66
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -28,6 +28,7 @@ $(document).ready(function() {
 | 
				
			||||||
            var button = $('<span class="copybutton">>>></span>');
 | 
					            var button = $('<span class="copybutton">>>></span>');
 | 
				
			||||||
            button.css(button_styles)
 | 
					            button.css(button_styles)
 | 
				
			||||||
            button.attr('title', hide_text);
 | 
					            button.attr('title', hide_text);
 | 
				
			||||||
 | 
					            button.data('hidden', 'false');
 | 
				
			||||||
            jthis.prepend(button);
 | 
					            jthis.prepend(button);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        // tracebacks (.gt) contain bare text elements that need to be
 | 
					        // tracebacks (.gt) contain bare text elements that need to be
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue