2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03: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
+1 -1
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'))