]> 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:44:24 +0000 (19:44 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Wed, 2 Mar 2016 17:44:24 +0000 (19:44 +0200)
Patch by Liang-Bo Wang.

Doc/tools/static/copybutton.js

index 593b59498463fe3caff90c3f678b1a1d9a0a81c2..52e6c2d4c8439ca45adeeda871c03ed6ec290317 100644 (file)
@@ -27,6 +27,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