Project

General

Profile

Patch #20906 ยป 0001-Update-showTab-to-work-for-multiple-tabs-on-same-pag.patch

Felix Gliesche, 2015-10-05 18:41

View differences:

public/javascripts/application.js
}
function showTab(name, url) {
$('div#content .tab-content').hide();
$('div.tabs a').removeClass('selected');
$('#tab-content-' + name).parent().find('.tab-content').hide();
$('#tab-content-' + name).parent().find('div.tabs a').removeClass('selected');
$('#tab-content-' + name).show();
$('#tab-' + name).addClass('selected');
//replaces current URL with the "href" attribute of the current link
    (1-1/1)