Skip to content

Commit 25c0ef5

Browse files
committed
Issue #26246: Set initial value of the hidden attr when creating copy button.
Patch by Liang-Bo Wang.
1 parent 90faa09 commit 25c0ef5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/tools/static/copybutton.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ $(document).ready(function() {
2828
var button = $('<span class="copybutton">&gt;&gt;&gt;</span>');
2929
button.css(button_styles)
3030
button.attr('title', hide_text);
31+
button.data('hidden', 'false');
3132
jthis.prepend(button);
3233
}
3334
// tracebacks (.gt) contain bare text elements that need to be

0 commit comments

Comments
 (0)