ozobi 2019-02-07 14:45:13 +01:00 committed by Matthew Taylor
parent 2463671e20
commit c5033d3ee6
9 changed files with 44 additions and 34 deletions
static/js

View file

@ -181,7 +181,7 @@ jQuery(document).ready(function() {
if (text.length > 5) {
if (!clipInit) {
var text, clip = new Clipboard('.copy-to-clipboard', {
var text, clip = new ClipboardJS('.copy-to-clipboard', {
text: function(trigger) {
text = $(trigger).prev('code').text();
return text.replace(/^\$\s/gm, '');