mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
should check for alert class not alertmessage
This commit is contained in:
parent
93c8152216
commit
3ed836b198
3
js/bootstrap-alert.js
vendored
3
js/bootstrap-alert.js
vendored
@ -43,13 +43,12 @@
|
||||
|
||||
e && e.preventDefault()
|
||||
|
||||
$parent.length || ($parent = $this.hasClass('alert-message') ? $this : $this.parent())
|
||||
$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
|
||||
|
||||
$parent.removeClass('in')
|
||||
|
||||
function removeElement() {
|
||||
$parent.remove()
|
||||
|
||||
$parent.trigger('closed')
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user