mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
should check for alert class not alertmessage
This commit is contained in:
parent
93c8152216
commit
3ed836b198
1 changed files with 1 additions and 2 deletions
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…
Reference in a new issue