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
a032c396
Commit
a032c396
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Plain Diff
Merge pull request #13406 from EnsignR/closed.bs.alert-after-remove
fires closed.bs.alert *after* DOM detach() as per
#12379
parents
c3f294da
73f7acc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/alert.js
+2
-1
js/alert.js
with
2 additions
and
1 deletion
+2
-1
js/alert.js
+
2
-
1
View file @
a032c396
...
...
@@ -42,7 +42,8 @@
$parent
.
removeClass
(
'
in
'
)
function
removeElement
()
{
$parent
.
trigger
(
'
closed.bs.alert
'
).
remove
()
// detach from parent, fire event then clean up data
$parent
.
detach
().
trigger
(
'
closed.bs.alert
'
).
remove
()
}
$
.
support
.
transition
&&
$parent
.
hasClass
(
'
fade
'
)
?
...
...
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