mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-10 15:50:58 +00:00
fix docs bad use of private methods to change title of our tooltips (#29111)
This commit is contained in:
parent
201d338dbf
commit
a76c13589d
1 changed files with 2 additions and 4 deletions
|
|
@ -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…
Reference in a new issue