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

berker.peksag python-checkins at python.org
Wed Mar 2 12:40:26 EST 2016


https://hg.python.org/cpython/rev/7444bdd400cd
changeset:   100403:7444bdd400cd
branch:      3.4
parent:      100386:3b69f21d7e62
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Wed Mar 02 19:40:08 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
@@ -28,6 +28,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