vendor/assets/javascripts/tab.js in flashgrid-2.0.0 vs vendor/assets/javascripts/tab.js in flashgrid-2.0.1

- old
+ new

@@ -6,10 +6,12 @@ var Tab = function (element) { this.element = $(element) } + Tab.VERSION = '3.1.1' + Tab.prototype.show = function () { var $this = this.element var $ul = $this.closest('ul:not(.dropdown-menu)') var selector = $this.data('target') @@ -29,10 +31,10 @@ if (e.isDefaultPrevented()) return 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', relatedTarget: previous }) \ No newline at end of file