js/tab-responsive.js
function(node) {
            var $activeCollapse = $(node);
            var $paneParent = $activeCollapse.closest('.tab-pane');
            var $paneID = $paneParent.attr('id');
            var $paneContainer = $activeCollapse.closest('.tab-content');

            $paneContainer.find('[data-cfw="collapse"]').each(function() {
                var $this = $(this);
                if ($this[0] === $activeCollapse[0]) {
                    return;
                }
                $this.CFW_Collapse('hide');
            });

            var $tabList = this.$element.find('[data-cfw="tab"]');
            $tabList.each(function() {
                var $this = $(this);
                var selector = $this.attr('data-cfw-tab-target');
                if (!selector) {
                    selector = $this.attr('href');
                }
                selector = selector.replace(/^#/, '');
                if (selector == $paneID) {
                    $this.one('beforeShow.cfw.tab', function(e) {
                            e.stopPropagation();
                        })
                        .CFW_Tab('show');
                }
            });
        }
function(node) {
            var $activeCollapse = $(node);
            var $paneParent = $activeCollapse.closest('.tab-pane');
            var $paneID = $paneParent.attr('id');
            var $paneContainer = $activeCollapse.closest('.tab-content');

            $paneContainer.find('[data-cfw="collapse"]').each(function() {
                var $this = $(this);
                if ($this[0] === $activeCollapse[0]) {
                    return;
                }
                $this.CFW_Collapse('hide');
            });

            var $tabList = this.$element.find('[data-cfw="tab"]');
            $tabList.each(function() {
                var $this = $(this);
                var selector = $this.attr('data-cfw-tab-target');
                if (!selector) {
                    selector = $this.attr('href');
                }
                selector = selector.replace(/^#/, '');
                if (selector == $paneID) {
                    $this.one('beforeShow.cfw.tab', function(e) {
                            e.stopPropagation();
                        })
                        .CFW_Tab('show');
                }
            });
        }
function ( node ) { var $activeCollapse = $ ( node ) ; var $paneParent = $activeCollapse . closest ( '.tab-pane' ) ; var $paneID = $paneParent . attr ( 'id' ) ; var $paneContainer = $activeCollapse . closest ( '.tab-content' ) ; $paneContainer . find ( '[data-cfw="collapse"]' ) . each ( function ( ) { var $this = $ ( this ) ; if ( $this [ 0 ] === $activeCollapse [ 0 ] ) { return ; } $this . CFW_Collapse ( 'hide' ) ; } ) ; var $tabList = this . $element . find ( '[data-cfw="tab"]' ) ; $tabList . each ( function ( ) { var $this = $ ( this ) ; var selector = $this . attr ( 'data-cfw-tab-target' ) ; if ( ! selector ) { selector = $this . attr ( 'href' ) ; } selector = selector . replace ( / ^# / , '' ) ; if ( selector == $paneID ) { $this . one ( 'beforeShow.cfw.tab' , function ( e ) { e . stopPropagation ( ) ; } ) . CFW_Tab ( 'show' ) ; } } ) ; }
Set parent panel to active when collapse called Close all other collapse items
Set parent panel to active when collapse called Close all other collapse items