Skip to content

Commit 035a1da

Browse files
committed
Merge pull request #38 from thegallagher/master
Include text nodes in tab/collapse content
2 parents af2511e + e34267e commit 035a1da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bootstrap-tabcollapse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
$panelBodies.each(function(){
8989
var $panelBody = $(this),
9090
$tabPane = $panelBody.data('bs.tabcollapse.tabpane');
91-
$tabPane.append($panelBody.children('*').detach());
91+
$tabPane.append($panelBody.contents().detach());
9292
});
9393
this.$accordion.html('');
9494

@@ -210,7 +210,7 @@
210210
groupId = $tabPane.attr('id') + '-collapse',
211211
$panel = $(this.options.accordionTemplate($heading, groupId, parentId, active));
212212
$panel.find('.panel-heading > .panel-title').append(this._tabHeadingToPanelHeading($heading, groupId, parentId, active));
213-
$panel.find('.panel-body').append($tabPane.children('*').detach())
213+
$panel.find('.panel-body').append($tabPane.contents().detach())
214214
.data('bs.tabcollapse.tabpane', $tabPane);
215215

216216
return $panel;

0 commit comments

Comments
 (0)