diff options
| author | Mark Otto <[email protected]> | 2013-12-24 12:17:48 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-12-24 12:17:48 -0800 |
| commit | 5c2dfbf33b133a5e31035df970ffa05585eba422 (patch) | |
| tree | 522b5814714b2df5064e441959d515a5ea4a89a0 /dist/js/bootstrap.js | |
| parent | 679c7862374be9b742862923181302f76b3a8c06 (diff) | |
| parent | 25390716ea2a0bf9cd476858c826775d68c2f1cf (diff) | |
| download | bootstrap-5c2dfbf33b133a5e31035df970ffa05585eba422.tar.xz bootstrap-5c2dfbf33b133a5e31035df970ffa05585eba422.zip | |
Merge branch 'master' of github.com:twbs/bootstrap
Conflicts:
docs-assets/js/raw-files.js
Diffstat (limited to 'dist/js/bootstrap.js')
| -rw-r--r-- | dist/js/bootstrap.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 126b03f8c..133755116 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -785,7 +785,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery" 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 = { @@ -1179,6 +1179,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery" var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight) this.applyPlacement(calculatedOffset, placement) + this.hoverState = null this.$element.trigger('shown.bs.' + this.type) } } @@ -1267,6 +1268,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery" .emulateTransitionEnd(150) : complete() + this.hoverState = null this.$element.trigger('hidden.bs.' + this.type) return this @@ -1532,7 +1534,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery" .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 |
