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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25c0ef518d0e9267c4d31284a3ad93d4559d84c6;p=thirdparty%2FPython%2Fcpython.git 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 dbd1de5b9688..716c9e472f4b 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