mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
clear timeout to reset delays for tooltip/popover
This commit is contained in:
parent
22963d7346
commit
94b24aaa47
3 changed files with 8 additions and 4 deletions
Binary file not shown.
6
docs/assets/js/bootstrap-tooltip.js
vendored
6
docs/assets/js/bootstrap-tooltip.js
vendored
|
@ -73,8 +73,9 @@
|
|||
if (!self.options.delay || !self.options.delay.show) {
|
||||
self.show()
|
||||
} else {
|
||||
clearTimeout(this.timeout)
|
||||
self.hoverState = 'in'
|
||||
setTimeout(function() {
|
||||
this.timeout = setTimeout(function() {
|
||||
if (self.hoverState == 'in') {
|
||||
self.show()
|
||||
}
|
||||
|
@ -88,8 +89,9 @@
|
|||
if (!self.options.delay || !self.options.delay.hide) {
|
||||
self.hide()
|
||||
} else {
|
||||
clearTimeout(this.timeout)
|
||||
self.hoverState = 'out'
|
||||
setTimeout(function() {
|
||||
this.timeout = setTimeout(function() {
|
||||
if (self.hoverState == 'out') {
|
||||
self.hide()
|
||||
}
|
||||
|
|
6
js/bootstrap-tooltip.js
vendored
6
js/bootstrap-tooltip.js
vendored
|
@ -73,8 +73,9 @@
|
|||
if (!self.options.delay || !self.options.delay.show) {
|
||||
self.show()
|
||||
} else {
|
||||
clearTimeout(this.timeout)
|
||||
self.hoverState = 'in'
|
||||
setTimeout(function() {
|
||||
this.timeout = setTimeout(function() {
|
||||
if (self.hoverState == 'in') {
|
||||
self.show()
|
||||
}
|
||||
|
@ -88,8 +89,9 @@
|
|||
if (!self.options.delay || !self.options.delay.hide) {
|
||||
self.hide()
|
||||
} else {
|
||||
clearTimeout(this.timeout)
|
||||
self.hoverState = 'out'
|
||||
setTimeout(function() {
|
||||
this.timeout = setTimeout(function() {
|
||||
if (self.hoverState == 'out') {
|
||||
self.hide()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue