diff options
author | XhmikosR <xhmikosr@gmail.com> | 2017-12-30 16:52:53 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2017-12-31 02:42:19 +0300 |
commit | 45b649f99d8950d3c558664b60914f4d31dd79dc (patch) | |
tree | 52363ee7cdbf2c7605c721089bafc998a5499e86 /assets/js | |
parent | a6996ef38ec4d4b4ad84fc31b4810db49d0e0bad (diff) |
application.js: make the clipboard button selector more restrictive.
Diffstat (limited to 'assets/js')
-rw-r--r-- | assets/js/src/application.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 = '<div class="bd-clipboard"><button class="btn-clipboard" title="Copy to clipboard">Copy</button></div>' $(this).before(btnHtml) $('.btn-clipboard') |