summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-21 19:24:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-21 19:24:42 +0000
commit0b19f6ce51ae1fefe4f962151b3e1ed8bb7471c2 (patch)
tree42b29d0ec38cb0f639b9935d8db677babf2d109c /public/javascripts
parentd75940f97cd5db6efc691631e2ed6bfcf91bb025 (diff)
downloadredmine-0b19f6ce51ae1fefe4f962151b3e1ed8bb7471c2.tar.gz
redmine-0b19f6ce51ae1fefe4f962151b3e1ed8bb7471c2.zip
Fix mulitple tab navigation highlighting and content hiding (#20906).
Patch by Felix Gliesche. git-svn-id: http://svn.redmine.org/redmine/trunk@14728 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/application.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 5ff306e6d..32261e07c 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