2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

Added type="button" to <button>s without any type (#27174)

(again)

https://github.com/twbs/bootlint/wiki/W007
This commit is contained in:
Herst
2018-09-03 17:55:04 +02:00
committed by Patrick H. Lauke
parent fad49e710e
commit 7b9c8e8eb3
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -54,7 +54,7 @@
// Insert copy to clipboard button before .highlight
$('figure.highlight, div.highlight').each(function () {
var btnHtml = '<div class="bd-clipboard"><button class="btn-clipboard" title="Copy to clipboard">Copy</button></div>'
var btnHtml = '<div class="bd-clipboard"><button type="button" class="btn-clipboard" title="Copy to clipboard">Copy</button></div>'
$(this).before(btnHtml)
$('.btn-clipboard')
.tooltip()