Commit 138af82e authored by Ashley Dawson's avatar Ashley Dawson

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
parent c692c29c
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
var $target = $(selector) var $target = $(selector)
this.activate($this.parent('li'), $ul) this.activate($this.closest('li'), $ul)
this.activate($target, $target.parent(), function () { this.activate($target, $target.parent(), function () {
$this.trigger({ $this.trigger({
type: 'shown.bs.tab', type: 'shown.bs.tab',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment