]> source.dussan.org Git - redmine.git/commitdiff
Merged r14728 (#20906).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Nov 2015 08:20:26 +0000 (08:20 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Nov 2015 08:20:26 +0000 (08:20 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.1-stable@14805 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index 888963a0a2f3f78abc09ef5441a8e14eaf66b7c4..8d1f8d56a85aef8f25b1c3d3b8302cd068fb5c5f 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