copying to clipboard no longer copies the compilation results from "play"
This commit is contained in:
parent
6a279e2775
commit
a6275ebcdb
|
@ -201,7 +201,7 @@ $( document ).ready(function() {
|
||||||
var clipboardSnippets = new Clipboard('.clip-button', {
|
var clipboardSnippets = new Clipboard('.clip-button', {
|
||||||
text: function(trigger) {
|
text: function(trigger) {
|
||||||
hideTooltip(trigger);
|
hideTooltip(trigger);
|
||||||
return trigger.parentElement.parentElement.textContent;
|
return $(trigger).parents(".playpen").find("code.language-rust.hljs")[0].textContent;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
clipboardSnippets.on('success', function(e) {
|
clipboardSnippets.on('success', function(e) {
|
||||||
|
|
Loading…
Reference in New Issue