aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/modal.js2
-rw-r--r--js/scrollspy.js2
-rw-r--r--js/tooltip.js2
3 files changed, 4 insertions, 2 deletions
diff --git a/js/modal.js b/js/modal.js
index ff22950c3..fe02d71d4 100644
--- a/js/modal.js
+++ b/js/modal.js
@@ -18,7 +18,7 @@
this.$backdrop =
this.isShown = null
- if (this.options.remote) this.$element.load(this.options.remote)
+ if (this.options.remote) this.$element.find('.modal-content').load(this.options.remote)
}
Modal.DEFAULTS = {
diff --git a/js/scrollspy.js b/js/scrollspy.js
index 2e341bb89..79fa10e6d 100644
--- a/js/scrollspy.js
+++ b/js/scrollspy.js
@@ -47,7 +47,7 @@
.map(function () {
var $el = $(this)
var href = $el.data('target') || $el.attr('href')
- var $href = /^#\w/.test(href) && $(href)
+ var $href = /^#./.test(href) && $(href)
return ($href
&& $href.length
diff --git a/js/tooltip.js b/js/tooltip.js
index 656234dea..f24876139 100644
--- a/js/tooltip.js
+++ b/js/tooltip.js
@@ -177,6 +177,7 @@
var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
this.applyPlacement(calculatedOffset, placement)
+ this.hoverState = null
this.$element.trigger('shown.bs.' + this.type)
}
}
@@ -265,6 +266,7 @@
.emulateTransitionEnd(150) :
complete()
+ this.hoverState = null
this.$element.trigger('hidden.bs.' + this.type)
return this