Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2017-12-30 16:52:53 +0300
committerXhmikosR <xhmikosr@gmail.com>2017-12-31 02:42:19 +0300
commit45b649f99d8950d3c558664b60914f4d31dd79dc (patch)
tree52363ee7cdbf2c7605c721089bafc998a5499e86 /assets
parenta6996ef38ec4d4b4ad84fc31b4810db49d0e0bad (diff)
application.js: make the clipboard button selector more restrictive.
Diffstat (limited to 'assets')
-rw-r--r--assets/js/src/application.js2
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')