From: XhmikosR Date: Sat, 30 Dec 2017 13:52:53 +0000 (+0200) Subject: application.js: make the clipboard button selector more restrictive. X-Git-Tag: v4.0.0~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45b649f99d8950d3c558664b60914f4d31dd79dc;p=thirdparty%2Fbootstrap.git application.js: make the clipboard button selector more restrictive. --- diff --git a/assets/js/src/application.js b/assets/js/src/application.js index 9c236b7c4b..eb52848756 100644 --- a/assets/js/src/application.js +++ b/assets/js/src/application.js @@ -54,7 +54,7 @@ }) // Insert copy to clipboard button before .highlight - $('.highlight').each(function () { + $('figure.highlight, div.highlight').each(function () { var btnHtml = '
' $(this).before(btnHtml) $('.btn-clipboard')