]> source.dussan.org Git - redmine.git/commitdiff
Fixed that changing tabs in project settings unselect "Write" tab of project descript...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Sep 2018 16:33:46 +0000 (16:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Sep 2018 16:33:46 +0000 (16:33 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@17548 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index dbe4a32b93a1133486f575fbd49225f8f209ac89..5221152fbbaca42bf0a487adce6db5c0c3fb512a 100644 (file)
@@ -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)