Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
738f88f6
Commit
738f88f6
authored
Feb 27, 2016
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#26246: merge with 3.4.
parents
5d941340
90ba2ca6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
Doc/tools/static/copybutton.js
Doc/tools/static/copybutton.js
+11
-7
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Doc/tools/static/copybutton.js
View file @
738f88f6
...
...
@@ -38,20 +38,24 @@ $(document).ready(function() {
});
// define the behavior of the button when it's clicked
$
(
'
.copybutton
'
).
toggle
(
function
()
{
var
button
=
$
(
this
);
$
(
'
.copybutton
'
).
click
(
function
(
e
){
e
.
preventDefault
();
var
button
=
$
(
this
);
if
(
button
.
data
(
'
hidden
'
)
===
'
false
'
)
{
// hide the code output
button
.
parent
().
find
(
'
.go, .gp, .gt
'
).
hide
();
button
.
next
(
'
pre
'
).
find
(
'
.gt
'
).
nextUntil
(
'
.gp, .go
'
).
css
(
'
visibility
'
,
'
hidden
'
);
button
.
css
(
'
text-decoration
'
,
'
line-through
'
);
button
.
attr
(
'
title
'
,
show_text
);
},
function
()
{
var
button
=
$
(
this
);
button
.
data
(
'
hidden
'
,
'
true
'
);
}
else
{
// show the code output
button
.
parent
().
find
(
'
.go, .gp, .gt
'
).
show
();
button
.
next
(
'
pre
'
).
find
(
'
.gt
'
).
nextUntil
(
'
.gp, .go
'
).
css
(
'
visibility
'
,
'
visible
'
);
button
.
css
(
'
text-decoration
'
,
'
none
'
);
button
.
attr
(
'
title
'
,
hide_text
);
});
button
.
data
(
'
hidden
'
,
'
false
'
);
}
});
});
Misc/ACKS
View file @
738f88f6
...
...
@@ -1533,6 +1533,7 @@ Kevin Walzer
Rodrigo Steinmuller Wanderley
Dingyuan Wang
Ke Wang
Liang-Bo Wang
Greg Ward
Tom Wardill
Zachary Ware
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment