js/tab-responsive.js
function(node) {
            var $activeTab = $(node);
            var data = $($activeTab).data('cfw.tab');
            if (data) {
                var $activePane = data.$target;
                var $paneContainer = $activePane.closest('.tab-content');
                $paneContainer.find('[data-cfw="collapse"]').each(function() {
                    $(this).one('afterHide.cfw.collapse', function(e) {
                            e.stopPropagation();
                            e.preventDefault();
                        })
                        .CFW_Collapse('hide');
                });

                var $collapseItem = $activePane.find('[data-cfw="collapse"]');
                $collapseItem.one('afterShow.cfw.collapse', function(e) {
                        e.stopPropagation();
                        e.preventDefault();
                    })
                    .CFW_Collapse('show');
            }
        }
function(node) {
            var $activeTab = $(node);
            var data = $($activeTab).data('cfw.tab');
            if (data) {
                var $activePane = data.$target;
                var $paneContainer = $activePane.closest('.tab-content');
                $paneContainer.find('[data-cfw="collapse"]').each(function() {
                    $(this).one('afterHide.cfw.collapse', function(e) {
                            e.stopPropagation();
                            e.preventDefault();
                        })
                        .CFW_Collapse('hide');
                });

                var $collapseItem = $activePane.find('[data-cfw="collapse"]');
                $collapseItem.one('afterShow.cfw.collapse', function(e) {
                        e.stopPropagation();
                        e.preventDefault();
                    })
                    .CFW_Collapse('show');
            }
        }
function ( node ) { var $activeTab = $ ( node ) ; var data = $ ( $activeTab ) . data ( 'cfw.tab' ) ; if ( data ) { var $activePane = data . $target ; var $paneContainer = $activePane . closest ( '.tab-content' ) ; $paneContainer . find ( '[data-cfw="collapse"]' ) . each ( function ( ) { $ ( this ) . one ( 'afterHide.cfw.collapse' , function ( e ) { e . stopPropagation ( ) ; e . preventDefault ( ) ; } ) . CFW_Collapse ( 'hide' ) ; } ) ; var $collapseItem = $activePane . find ( '[data-cfw="collapse"]' ) ; $collapseItem . one ( 'afterShow.cfw.collapse' , function ( e ) { e . stopPropagation ( ) ; e . preventDefault ( ) ; } ) . CFW_Collapse ( 'show' ) ; } }
Open the collapse element in the active panel Closes all related collapse items first
Open the collapse element in the active panel Closes all related collapse items first