app/assets/javascripts/material/tab.js in material-sass-0.0.1 vs app/assets/javascripts/material/tab.js in material-sass-0.0.2
- old
+ new
@@ -3,10 +3,10 @@
$(this).append('<div class="tab-nav-indicator"></div>');
tabSwitch($('.nav > li.active', $(this)), null);
});
// tab switch
- $('.tab-nav a[data-toggle="tab"]').on('show.bs.tab', function(e) {
+ $(document).on('show.bs.tab', '.tab-nav a[data-toggle="tab"]', function(e) {
tabSwitch($(e.target), $(e.relatedTarget));
});
function tabSwitch(newTab, oldTab) {
var $nav = newTab.closest('.tab-nav'),
\ No newline at end of file