Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2016-11-30 08:37:00 +0300
committerMark Otto <markdotto@gmail.com>2016-11-30 08:37:00 +0300
commit59dc3e174db4f22deb484352b17f8e1ac07172cc (patch)
tree61d050eeba56a540123df7a2cde3252cd99013ea /js/dist/tooltip.js
parent535fec93cf8892d1a83f6bb8cb97adc589af2b39 (diff)
grunt
Diffstat (limited to 'js/dist/tooltip.js')
-rw-r--r--js/dist/tooltip.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/dist/tooltip.js b/js/dist/tooltip.js
index 1de06f4459..0ba14d6c76 100644
--- a/js/dist/tooltip.js
+++ b/js/dist/tooltip.js
@@ -187,6 +187,7 @@ var Tooltip = function ($) {
$.removeData(this.element, this.constructor.DATA_KEY);
$(this.element).off(this.constructor.EVENT_KEY);
+ $(this.element).closest('.modal').off('hide.bs.modal');
if (this.tip) {
$(this.tip).remove();
@@ -393,6 +394,10 @@ var Tooltip = function ($) {
return _this3._leave(event);
});
}
+
+ $(_this3.element).closest('.modal').on('hide.bs.modal', function () {
+ return _this3.hide();
+ });
});
if (this.config.selector) {