[Python-checkins] cpython (2.7): Issue #26246: Set initial value of the hidden attr when creating copy button.

berker.peksag python-checkins at python.org
Wed Mar 2 12:43:47 EST 2016


https://hg.python.org/cpython/rev/305ae007899b
changeset:   100406:305ae007899b
branch:      2.7
parent:      100368:5bfb4147405e
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Wed Mar 02 19:44:24 2016 +0200
summary:
  Issue #26246: Set initial value of the hidden attr when creating copy button.

Patch by Liang-Bo Wang.

files:
  Doc/tools/static/copybutton.js |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Doc/tools/static/copybutton.js b/Doc/tools/static/copybutton.js
--- a/Doc/tools/static/copybutton.js
+++ b/Doc/tools/static/copybutton.js
@@ -27,6 +27,7 @@
             var button = $('<span class="copybutton">>>></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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list