Fixed nested tab elements li activation

Added closest li instead of direct parent so that you can nest multiple elements within tabs, such as button groups
This commit is contained in:
Ashley Dawson 2014-03-26 22:21:54 +00:00
parent c692c29c7d
commit 138af82e29
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
var $target = $(selector)
this.activate($this.parent('li'), $ul)
this.activate($this.closest('li'), $ul)
this.activate($target, $target.parent(), function () {
$this.trigger({
type: 'shown.bs.tab',