From: Jean-Philippe Lang Date: Sat, 7 Nov 2015 08:20:26 +0000 (+0000) Subject: Merged r14728 (#20906). X-Git-Tag: 3.1.2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9d18d3ef08e2571ba88911906453e00e1e629843;p=redmine.git Merged r14728 (#20906). git-svn-id: http://svn.redmine.org/redmine/branches/3.1-stable@14805 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 888963a0a..8d1f8d56a 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -315,8 +315,8 @@ function toggleMultiSelect(el) { } 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