mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-29 02:30:23 +00:00
fix js from @fat feedback for modal
This commit is contained in:
parent
52581839c7
commit
a9729c5fd0
4 changed files with 4 additions and 4 deletions
2
docs/assets/js/bootstrap-modal.js
vendored
2
docs/assets/js/bootstrap-modal.js
vendored
|
|
@ -241,7 +241,7 @@
|
|||
})
|
||||
})
|
||||
|
||||
var $body = $('body')
|
||||
var $body = $(document.body)
|
||||
.on('shown', '.modal', function () { $body.addClass('modal-open') })
|
||||
.on('hidden', '.modal', function () { $body.removeClass('modal-open') })
|
||||
|
||||
|
|
|
|||
2
docs/assets/js/bootstrap.js
vendored
2
docs/assets/js/bootstrap.js
vendored
|
|
@ -1039,7 +1039,7 @@
|
|||
})
|
||||
})
|
||||
|
||||
var $body = $('body')
|
||||
var $body = $(document.body)
|
||||
.on('shown', '.modal', function () { $body.addClass('modal-open') })
|
||||
.on('hidden', '.modal', function () { $body.removeClass('modal-open') })
|
||||
|
||||
|
|
|
|||
2
docs/assets/js/bootstrap.min.js
vendored
2
docs/assets/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
2
js/bootstrap-modal.js
vendored
2
js/bootstrap-modal.js
vendored
|
|
@ -241,7 +241,7 @@
|
|||
})
|
||||
})
|
||||
|
||||
var $body = $('body')
|
||||
var $body = $(document.body)
|
||||
.on('shown', '.modal', function () { $body.addClass('modal-open') })
|
||||
.on('hidden', '.modal', function () { $body.removeClass('modal-open') })
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue