From bb569362f4b11b6f90c6b0b60eeeb6dd5b055c97 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Wed, 2 Mar 2016 19:44:24 +0200 Subject: 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 593b594..52e6c2d 100644 --- a/Doc/tools/static/copybutton.js +++ b/Doc/tools/static/copybutton.js @@ -27,6 +27,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 -- cgit v0.12