in src/main/resources/js/site.js [62:99]
$('.auto-tabs').each(function(groupid) {
// Find tab bar
$(this).find('ul').each(function() {
// Add styling
$(this).addClass('nav nav-tabs');
// Go tab bar items
$(this).find('li').each(function(itemid) {
// Set first tab as active
if (itemid == 0) {
$(this).addClass('active');
}
// Replace text with a link to tab contents
var name = $(this).html();
var link = $('<a>')
.attr('href', '#' + 'tab-' + groupid + '-' + itemid)
.attr('data-toggle', 'tab')
.html(name);
$(this).html(link);
});
});
// Find tab contents
$(this).find('.tab-content .tab-pane').each(function(itemid) {
// Set first tab as active
if (itemid == 0) {
$(this).addClass('active');
}
// Set the tab id
$(this).attr('id', 'tab-' + groupid + '-' + itemid);
});
});