0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

fix docs bad use of private methods to change title of our tooltips (#29111)

This commit is contained in:
Johann-S 2019-07-23 15:18:41 +02:00 committed by XhmikosR
parent 201d338dbf
commit a76c13589d

View File

@ -144,12 +144,10 @@
clipboard.on('success', function (e) { clipboard.on('success', function (e) {
var tooltipBtn = bootstrap.Tooltip._getInstance(e.trigger) var tooltipBtn = bootstrap.Tooltip._getInstance(e.trigger)
e.trigger.setAttribute('title', 'Copied!') e.trigger.setAttribute('data-original-title', 'Copied!')
tooltipBtn._fixTitle()
tooltipBtn.show() tooltipBtn.show()
e.trigger.setAttribute('title', 'Copy to clipboard') e.trigger.setAttribute('data-original-title', 'Copy to clipboard')
tooltipBtn._fixTitle()
e.clearSelection() e.clearSelection()
}) })