1
0
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:
Jacob Thornton
2012-01-20 13:50:36 -08:00
parent 93c8152216
commit 3ed836b198

View File

@@ -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')
}