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:
parent
201d338dbf
commit
a76c13589d
@ -144,12 +144,10 @@
|
||||
clipboard.on('success', function (e) {
|
||||
var tooltipBtn = bootstrap.Tooltip._getInstance(e.trigger)
|
||||
|
||||
e.trigger.setAttribute('title', 'Copied!')
|
||||
tooltipBtn._fixTitle()
|
||||
e.trigger.setAttribute('data-original-title', 'Copied!')
|
||||
tooltipBtn.show()
|
||||
|
||||
e.trigger.setAttribute('title', 'Copy to clipboard')
|
||||
tooltipBtn._fixTitle()
|
||||
e.trigger.setAttribute('data-original-title', 'Copy to clipboard')
|
||||
e.clearSelection()
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user