summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-03-02 17:40:30 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-03-02 17:40:30 (GMT)
commitff47cfbc66b30e0714495cc74f92fa009bd8c1ca (patch)
tree7af79cc128c3d6a5d2b2c5b1fae9ea418f0a37fc
parentc724bae51cd0580cd493f319f3b14c2e1a28f3b6 (diff)
parent25c0ef518d0e9267c4d31284a3ad93d4559d84c6 (diff)
downloadcpython-ff47cfbc66b30e0714495cc74f92fa009bd8c1ca.zip
cpython-ff47cfbc66b30e0714495cc74f92fa009bd8c1ca.tar.gz
cpython-ff47cfbc66b30e0714495cc74f92fa009bd8c1ca.tar.bz2
Issue #26246: Set initial value of the hidden attr when creating copy button.
Patch by Liang-Bo Wang.
-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