]> granicus.if.org Git - python/commitdiff
Issue #26246: Set initial value of the hidden attr when creating copy button.
authorBerker Peksag <berker.peksag@gmail.com>
Wed, 2 Mar 2016 17:40:08 +0000 (19:40 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Wed, 2 Mar 2016 17:40:08 +0000 (19:40 +0200)
Patch by Liang-Bo Wang.

Doc/tools/static/copybutton.js

index dbd1de5b9688c308c0c79d36e5547d37874d5f65..716c9e472f4bebe97e3bb7ec8dd230aa574b7967 100644 (file)
@@ -28,6 +28,7 @@ $(document).ready(function() {
             var button = $('<span class="copybutton">&gt;&gt;&gt;</span>');
             button.css(button_styles)
             button.attr('title', hide_text);
+            button.data('hidden', 'false');
             jthis.prepend(button);
         }
         // tracebacks (.gt) contain bare text elements that need to be