openam / bootstrap-responsive-tabs

Bootstrap responsive tabs are tabs that switch to collapsible components (accordions) when resized.
openam.github.io/bootstrap-responsive-tabs
MIT License
132 stars 60 forks source link

Fix for nested panels breaking on tab to panel conversion #39

Closed araney closed 8 years ago

araney commented 9 years ago

Due to the fact that the plugin searches for all panel-body classed elements to convert back into tab-pane classed elements when converting panels back to tabs, any tab pane content that contains other panels will find their panel-body content removed and made into a tab-pane.

This change adds an additional namespaced class of fw-previous-tab-pane when converting a tab pane to a panel, and then only converts panel-body classed elements which also have the fw-previous-tab-pane class. This leaves any nested panels alone.