diff --git a/public/javascripts/application.js b/public/javascripts/application.js index dbe4a32b9..5221152fb 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -342,8 +342,8 @@ function toggleMultiSelect(el) { function showTab(name, url) { $('#tab-content-' + name).parent().find('.tab-content').hide(); - $('#tab-content-' + name).parent().find('div.tabs a').removeClass('selected'); $('#tab-content-' + name).show(); + $('#tab-' + name).closest('.tabs').find('a').removeClass('selected'); $('#tab-' + name).addClass('selected'); //replaces current URL with the "href" attribute of the current link //(only triggered if supported by browser)