Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
f9ce84b1
Kaydet (Commit)
f9ce84b1
authored
Şub 27, 2016
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#26246: update copybutton.js after JQuery update. Patch by Liang-Bo Wang.
üst
83e9b576
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
copybutton.js
Doc/tools/static/copybutton.js
+11
-7
ACKS
Misc/ACKS
+1
-0
No files found.
Doc/tools/static/copybutton.js
Dosyayı görüntüle @
f9ce84b1
...
...
@@ -37,20 +37,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
Dosyayı görüntüle @
f9ce84b1
...
...
@@ -1449,6 +1449,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