]> source.dussan.org Git - redmine.git/commitdiff
Fix mulitple tab navigation highlighting and content hiding (#20906).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Oct 2015 19:24:42 +0000 (19:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 21 Oct 2015 19:24:42 +0000 (19:24 +0000)
Patch by Felix Gliesche.

git-svn-id: http://svn.redmine.org/redmine/trunk@14728 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index 5ff306e6d4091e70b2a8a906ccc4ce9998c13b57..32261e07cdd151987699b9c1677df1b8c083fb99 100644 (file)
@@ -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