copying to clipboard no longer copies the compilation results from "play"

This commit is contained in:
Michal Budzynski 2017-06-12 14:02:53 +02:00
parent 6a279e2775
commit a6275ebcdb
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ $( document ).ready(function() {
var clipboardSnippets = new Clipboard('.clip-button', {
text: function(trigger) {
hideTooltip(trigger);
return trigger.parentElement.parentElement.textContent;
return $(trigger).parents(".playpen").find("code.language-rust.hljs")[0].textContent;
}
});
clipboardSnippets.on('success', function(e) {