From 25c0ef518d0e9267c4d31284a3ad93d4559d84c6 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Wed, 2 Mar 2016 19:40:08 +0200 Subject: [PATCH] Issue #26246: Set initial value of the hidden attr when creating copy button. Patch by Liang-Bo Wang. --- Doc/tools/static/copybutton.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/tools/static/copybutton.js b/Doc/tools/static/copybutton.js index dbd1de5b968..716c9e472f4 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