|
|
@ -9,6 +9,9 @@ |
|
|
|
* @extends BI.Widget |
|
|
|
* @extends BI.Widget |
|
|
|
* @abstract |
|
|
|
* @abstract |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var delayingTooltips; |
|
|
|
|
|
|
|
|
|
|
|
BI.Single = BI.inherit(BI.Widget, { |
|
|
|
BI.Single = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
var conf = BI.Single.superclass._defaultConfig.apply(this, arguments); |
|
|
|
var conf = BI.Single.superclass._defaultConfig.apply(this, arguments); |
|
|
@ -85,14 +88,16 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
this.element.on("mouseenter.title" + this.getName(), function (e) { |
|
|
|
this.element.on("mouseenter.title" + this.getName(), function (e) { |
|
|
|
self._e = e; |
|
|
|
self._e = e; |
|
|
|
if (self.getTipType() === "warning" || (BI.isKey(self.getWarningTitle()) && !self.isEnabled())) { |
|
|
|
if (self.getTipType() === "warning" || (BI.isKey(self.getWarningTitle()) && !self.isEnabled())) { |
|
|
|
|
|
|
|
delayingTooltips = self.getName(); |
|
|
|
self.showTimeout = BI.delay(function () { |
|
|
|
self.showTimeout = BI.delay(function () { |
|
|
|
if (BI.isNotNull(self.showTimeout)) { |
|
|
|
if (BI.isNotNull(self.showTimeout) && delayingTooltips === self.getName()) { |
|
|
|
self._showToolTip(self._e || e, opt); |
|
|
|
self._showToolTip(self._e || e, opt); |
|
|
|
} |
|
|
|
} |
|
|
|
}, 200); |
|
|
|
}, 200); |
|
|
|
} else if (self.getTipType() === "success" || self.isEnabled()) { |
|
|
|
} else if (self.getTipType() === "success" || self.isEnabled()) { |
|
|
|
|
|
|
|
delayingTooltips = self.getName(); |
|
|
|
self.showTimeout = BI.delay(function () { |
|
|
|
self.showTimeout = BI.delay(function () { |
|
|
|
if (BI.isNotNull(self.showTimeout)) { |
|
|
|
if (BI.isNotNull(self.showTimeout) && delayingTooltips === self.getName()) { |
|
|
|
self._showToolTip(self._e || e, opt); |
|
|
|
self._showToolTip(self._e || e, opt); |
|
|
|
} |
|
|
|
} |
|
|
|
}, 500); |
|
|
|
}, 500); |
|
|
|