mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
rebuild with tooltip formatting change
This commit is contained in:
parent
19469aa52c
commit
cf4924764c
Binary file not shown.
36
docs/assets/js/bootstrap-tooltip.js
vendored
36
docs/assets/js/bootstrap-tooltip.js
vendored
@ -72,33 +72,25 @@
|
|||||||
, enter: function (e) {
|
, enter: function (e) {
|
||||||
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
||||||
|
|
||||||
if (!self.options.delay || !self.options.delay.show) {
|
if (!self.options.delay || !self.options.delay.show) return self.show()
|
||||||
self.show()
|
|
||||||
} else {
|
clearTimeout(this.timeout)
|
||||||
clearTimeout(this.timeout)
|
self.hoverState = 'in'
|
||||||
self.hoverState = 'in'
|
this.timeout = setTimeout(function() {
|
||||||
this.timeout = setTimeout(function() {
|
if (self.hoverState == 'in') self.show()
|
||||||
if (self.hoverState == 'in') {
|
}, self.options.delay.show)
|
||||||
self.show()
|
|
||||||
}
|
|
||||||
}, self.options.delay.show)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
, leave: function (e) {
|
, leave: function (e) {
|
||||||
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
|
||||||
|
|
||||||
if (!self.options.delay || !self.options.delay.hide) {
|
if (!self.options.delay || !self.options.delay.hide) return self.hide()
|
||||||
self.hide()
|
|
||||||
} else {
|
clearTimeout(this.timeout)
|
||||||
clearTimeout(this.timeout)
|
self.hoverState = 'out'
|
||||||
self.hoverState = 'out'
|
this.timeout = setTimeout(function() {
|
||||||
this.timeout = setTimeout(function() {
|
if (self.hoverState == 'out') self.hide()
|
||||||
if (self.hoverState == 'out') {
|
}, self.options.delay.hide)
|
||||||
self.hide()
|
|
||||||
}
|
|
||||||
}, self.options.delay.hide)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
, show: function () {
|
, show: function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user