mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-09 07:20:58 +00:00
application.js: make the clipboard button selector more restrictive.
This commit is contained in:
parent
a6996ef38e
commit
45b649f99d
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue