Skip to content
GitLab
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
5de1e39a
Commit
5de1e39a
authored
13 years ago
by
Jonathan Ingram
Browse files
Options
Download
Email Patches
Plain Diff
From #822
parent
9fb38015
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/bootstrap-alert.js
+4
-0
js/bootstrap-alert.js
with
4 additions
and
0 deletions
+4
-0
js/bootstrap-alert.js
+
4
-
0
View file @
5de1e39a
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
,
selector
=
$this
.
attr
(
'
data-target
'
)
||
$this
.
attr
(
'
href
'
)
,
selector
=
$this
.
attr
(
'
data-target
'
)
||
$this
.
attr
(
'
href
'
)
,
$parent
=
$
(
selector
)
,
$parent
=
$
(
selector
)
$parent
.
trigger
(
'
close
'
)
e
&&
e
.
preventDefault
()
e
&&
e
.
preventDefault
()
$parent
.
length
||
(
$parent
=
$this
.
hasClass
(
'
alert-message
'
)
?
$this
:
$this
.
parent
())
$parent
.
length
||
(
$parent
=
$this
.
hasClass
(
'
alert-message
'
)
?
$this
:
$this
.
parent
())
...
@@ -47,6 +49,8 @@
...
@@ -47,6 +49,8 @@
function
removeElement
()
{
function
removeElement
()
{
$parent
.
remove
()
$parent
.
remove
()
$parent
.
trigger
(
'
closed
'
)
}
}
$
.
support
.
transition
&&
$parent
.
hasClass
(
'
fade
'
)
?
$
.
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