From: Berker Peksag Date: Wed, 2 Mar 2016 17:40:08 +0000 (+0200) Subject: Issue #26246: Set initial value of the hidden attr when creating copy button. X-Git-Tag: v3.4.5rc1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25c0ef518d0e9267c4d31284a3ad93d4559d84c6;p=python Issue #26246: Set initial value of the hidden attr when creating copy button. Patch by Liang-Bo Wang. --- diff --git a/Doc/tools/static/copybutton.js b/Doc/tools/static/copybutton.js index dbd1de5b96..716c9e472f 100644 --- a/Doc/tools/static/copybutton.js +++ b/Doc/tools/static/copybutton.js @@ -28,6 +28,7 @@ $(document).ready(function() { var button = $('>>>'); 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