mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-29 16:19:53 +02:00
should check for alert class not alertmessage
This commit is contained in:
3
js/bootstrap-alert.js
vendored
3
js/bootstrap-alert.js
vendored
@@ -43,13 +43,12 @@
|
|||||||
|
|
||||||
e && e.preventDefault()
|
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')
|
$parent.removeClass('in')
|
||||||
|
|
||||||
function removeElement() {
|
function removeElement() {
|
||||||
$parent.remove()
|
$parent.remove()
|
||||||
|
|
||||||
$parent.trigger('closed')
|
$parent.trigger('closed')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user