1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 14:29:07 +02:00

Use closest .alert for alert dismissal; closes #14306

This commit is contained in:
Heinrich Fenkart
2014-08-04 19:33:42 +02:00
parent 14e8ec2514
commit 75bffd84ae
2 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@
if (e) e.preventDefault()
if (!$parent.length) {
$parent = $this.hasClass('alert') ? $this : $this.parent()
$parent = $this.closest('.alert')
}
$parent.trigger(e = $.Event('close.bs.alert'))