Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
acf3c0bf
Commit
acf3c0bf
authored
10 years ago
by
Heinrich Fenkart
Browse files
Options
Download
Plain Diff
Merge pull request #14570 from twbs/remove-modal-open-after-backdrop-closed
Remove `.modal-open` class after backdrop is hidden
parents
7441d3f4
c4f431d2
4 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!25326
Adjust examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/modal.js
+2
-3
js/modal.js
with
2 additions
and
3 deletions
+2
-3
js/modal.js
+
2
-
3
View file @
acf3c0bf
...
...
@@ -107,9 +107,6 @@
this
.
isShown
=
false
this
.
$body
.
removeClass
(
'
modal-open
'
)
this
.
resetScrollbar
()
this
.
escape
()
$
(
document
).
off
(
'
focusin.bs.modal
'
)
...
...
@@ -150,6 +147,8 @@
var
that
=
this
this
.
$element
.
hide
()
this
.
backdrop
(
function
()
{
that
.
$body
.
removeClass
(
'
modal-open
'
)
that
.
resetScrollbar
()
that
.
$element
.
trigger
(
'
hidden.bs.modal
'
)
})
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets