cpython: ac175a7af60b (original) (raw)
Mercurial > cpython
changeset 100356:ac175a7af60b 3.5
#26246: merge with 3.4. [#26246]
Ezio Melotti ezio.melotti@gmail.com | |
---|---|
date | Sat, 27 Feb 2016 08:41:16 +0200 |
parents | ce5ef48b5140(current diff)f0e20d942760(diff) |
children | 8c0761260d22 cf70b1204e44 |
files | Misc/ACKS |
diffstat | 2 files changed, 12 insertions(+), 7 deletions(-)[+] [-] Doc/tools/static/copybutton.js 18 Misc/ACKS 1 |
line wrap: on
line diff
--- a/Doc/tools/static/copybutton.js +++ b/Doc/tools/static/copybutton.js @@ -38,20 +38,24 @@ }); // define the behavior of the button when it's clicked
- $('.copybutton').click(function(e){
e.preventDefault();[](#l1.11)
var button = $(this);[](#l1.12)
if (button.data('hidden') === 'false') {[](#l1.13)
// hide the code output[](#l1.14) button.parent().find('.go, .gp, .gt').hide();[](#l1.15) button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'hidden');[](#l1.16) button.css('text-decoration', 'line-through');[](#l1.17) button.attr('title', show_text);[](#l1.18)
},[](#l1.19)
function() {[](#l1.20)
var button = $(this);[](#l1.21)
button.data('hidden', 'true');[](#l1.22)
} else {[](#l1.23)
// show the code output[](#l1.24) button.parent().find('.go, .gp, .gt').show();[](#l1.25) button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'visible');[](#l1.26) button.css('text-decoration', 'none');[](#l1.27) button.attr('title', hide_text);[](#l1.28)
});[](#l1.29)
--- a/Misc/ACKS +++ b/Misc/ACKS @@ -1533,6 +1533,7 @@ Kevin Walzer Rodrigo Steinmuller Wanderley Dingyuan Wang Ke Wang +Liang-Bo Wang Greg Ward Tom Wardill Zachary Ware