aboutsummaryrefslogtreecommitdiff
path: root/docs/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-10-10 08:35:56 +0200
committerHeinrich Fenkart <[email protected]>2014-10-10 08:35:56 +0200
commit4a89fd02b743d5a99e06dbf6e87b8a58366c3dcb (patch)
tree0759b7d4c5631c886f811adf9439d48bc50bfd4e /docs/dist/js/bootstrap.js
parent42311c86c1bc25f4c0e32a5855e48754b20f3b63 (diff)
downloadbootstrap-4a89fd02b743d5a99e06dbf6e87b8a58366c3dcb.tar.xz
bootstrap-4a89fd02b743d5a99e06dbf6e87b8a58366c3dcb.zip
grunt
Diffstat (limited to 'docs/dist/js/bootstrap.js')
-rw-r--r--docs/dist/js/bootstrap.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js
index 5c22883ee..f4c1edf5c 100644
--- a/docs/dist/js/bootstrap.js
+++ b/docs/dist/js/bootstrap.js
@@ -1015,14 +1015,13 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
var doAnimate = $.support.transition && animate
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
- .appendTo(this.$body)
-
- this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
- if (e.target !== e.currentTarget) return
- this.options.backdrop == 'static'
- ? this.$element[0].focus.call(this.$element[0])
- : this.hide.call(this)
- }, this))
+ .prependTo(this.$element)
+ .on('click.dismiss.bs.modal', $.proxy(function (e) {
+ if (e.target !== e.currentTarget) return
+ this.options.backdrop == 'static'
+ ? this.$element[0].focus.call(this.$element[0])
+ : this.hide.call(this)
+ }, this))
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow