mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-12 00:24:03 +02:00
clear timeout to reset delays for tooltip/popover
This commit is contained in:
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) {
|
if (!self.options.delay || !self.options.delay.show) {
|
||||||
self.show()
|
self.show()
|
||||||
} else {
|
} else {
|
||||||
|
clearTimeout(this.timeout)
|
||||||
self.hoverState = 'in'
|
self.hoverState = 'in'
|
||||||
setTimeout(function() {
|
this.timeout = setTimeout(function() {
|
||||||
if (self.hoverState == 'in') {
|
if (self.hoverState == 'in') {
|
||||||
self.show()
|
self.show()
|
||||||
}
|
}
|
||||||
@@ -88,8 +89,9 @@
|
|||||||
if (!self.options.delay || !self.options.delay.hide) {
|
if (!self.options.delay || !self.options.delay.hide) {
|
||||||
self.hide()
|
self.hide()
|
||||||
} else {
|
} else {
|
||||||
|
clearTimeout(this.timeout)
|
||||||
self.hoverState = 'out'
|
self.hoverState = 'out'
|
||||||
setTimeout(function() {
|
this.timeout = setTimeout(function() {
|
||||||
if (self.hoverState == 'out') {
|
if (self.hoverState == 'out') {
|
||||||
self.hide()
|
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) {
|
if (!self.options.delay || !self.options.delay.show) {
|
||||||
self.show()
|
self.show()
|
||||||
} else {
|
} else {
|
||||||
|
clearTimeout(this.timeout)
|
||||||
self.hoverState = 'in'
|
self.hoverState = 'in'
|
||||||
setTimeout(function() {
|
this.timeout = setTimeout(function() {
|
||||||
if (self.hoverState == 'in') {
|
if (self.hoverState == 'in') {
|
||||||
self.show()
|
self.show()
|
||||||
}
|
}
|
||||||
@@ -88,8 +89,9 @@
|
|||||||
if (!self.options.delay || !self.options.delay.hide) {
|
if (!self.options.delay || !self.options.delay.hide) {
|
||||||
self.hide()
|
self.hide()
|
||||||
} else {
|
} else {
|
||||||
|
clearTimeout(this.timeout)
|
||||||
self.hoverState = 'out'
|
self.hoverState = 'out'
|
||||||
setTimeout(function() {
|
this.timeout = setTimeout(function() {
|
||||||
if (self.hoverState == 'out') {
|
if (self.hoverState == 'out') {
|
||||||
self.hide()
|
self.hide()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user