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
315 315
}
316 316

  
317 317
function showTab(name, url) {
318
  $('div#content .tab-content').hide();
319
  $('div.tabs a').removeClass('selected');
318
  $('#tab-content-' + name).parent().find('.tab-content').hide();
319
  $('#tab-content-' + name).parent().find('div.tabs a').removeClass('selected');
320 320
  $('#tab-content-' + name).show();
321 321
  $('#tab-' + name).addClass('selected');
322 322
  //replaces current URL with the "href" attribute of the current link
    (1-1/1)