summaryrefslogtreecommitdiffstats
path: root/Doc/tools/static
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-03-02 17:40:08 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-03-02 17:40:08 (GMT)
commit25c0ef518d0e9267c4d31284a3ad93d4559d84c6 (patch)
treeb9d1903641b86e25970e3873fdc13498f79ad387 /Doc/tools/static
parent90faa091528b8d23f7e0f178a8d2f5d512e26b62 (diff)
downloadcpython-25c0ef518d0e9267c4d31284a3ad93d4559d84c6.zip
cpython-25c0ef518d0e9267c4d31284a3ad93d4559d84c6.tar.gz
cpython-25c0ef518d0e9267c4d31284a3ad93d4559d84c6.tar.bz2
Issue #26246: Set initial value of the hidden attr when creating copy button.
Patch by Liang-Bo Wang.
Diffstat (limited to 'Doc/tools/static')
-rw-r--r--Doc/tools/static/copybutton.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/tools/static/copybutton.js b/Doc/tools/static/copybutton.js
index dbd1de5..716c9e4 100644
--- a/Doc/tools/static/copybutton.js
+++ b/Doc/tools/static/copybutton.js
@@ -28,6 +28,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