]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
application.js: make the clipboard button selector more restrictive.
authorXhmikosR <xhmikosr@gmail.com>
Sat, 30 Dec 2017 13:52:53 +0000 (15:52 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Sat, 30 Dec 2017 23:42:19 +0000 (01:42 +0200)
assets/js/src/application.js

index 9c236b7c4bd5dd820985f2277e326967b490bcc4..eb52848756674da6e62f8af044a4a9c13a34aceb 100644 (file)
@@ -54,7 +54,7 @@
     })
 
     // Insert copy to clipboard button before .highlight
-    $('.highlight').each(function () {
+    $('figure.highlight, div.highlight').each(function () {
       var btnHtml = '<div class="bd-clipboard"><button class="btn-clipboard" title="Copy to clipboard">Copy</button></div>'
       $(this).before(btnHtml)
       $('.btn-clipboard')