A nested tab plugin's tabs are leaking in to the parent tab plugin.

Fixes #2481
This commit is contained in:
Samuel Georges 2016-11-14 08:46:32 +11:00
parent a2a0b207c6
commit f4f7355bf2
2 changed files with 4 additions and 4 deletions

View File

@ -14,8 +14,8 @@
var $el = this.$el = $(element);
this.options = options || {}
this.$tabsContainer = $('.nav-tabs', $el)
this.$pagesContainer = $('.tab-content', $el)
this.$tabsContainer = $('.nav-tabs:first', $el)
this.$pagesContainer = $('.tab-content:first', $el)
this.tabId = 'tabs' + $el.parents().length + Math.round(Math.random()*1000);
if (this.options.closable !== undefined && this.options.closable !== false)

View File

@ -4201,8 +4201,8 @@ data[option].apply(data,methodArgs)}})}
$.fn.dragScroll.Constructor=DragScroll
$.fn.dragScroll.noConflict=function(){$.fn.dragScroll=old
return this}}(window.jQuery);+function($){"use strict";var Tab=function(element,options){var $el=this.$el=$(element);this.options=options||{}
this.$tabsContainer=$('.nav-tabs',$el)
this.$pagesContainer=$('.tab-content',$el)
this.$tabsContainer=$('.nav-tabs:first',$el)
this.$pagesContainer=$('.tab-content:first',$el)
this.tabId='tabs'+$el.parents().length+Math.round(Math.random()*1000);if(this.options.closable!==undefined&&this.options.closable!==false)
$el.attr('data-closable','')
this.init()}