diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-02-06 13:48:47 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-02-06 13:48:47 +0100 |
commit | 6d6f3641bceef80b624461edd737ffcaf1285d97 (patch) | |
tree | 2c0765fb127c7ff2e4b7b253b8bb34550c1dc69e /sonar-server/src | |
parent | 08479ce64cf4180924000ab81816c41242911f86 (diff) | |
download | sonarqube-6d6f3641bceef80b624461edd737ffcaf1285d97.tar.gz sonarqube-6d6f3641bceef80b624461edd737ffcaf1285d97.zip |
Fix issue when selecting another resource
Diffstat (limited to 'sonar-server/src')
-rw-r--r-- | sonar-server/src/main/webapp/javascripts/application.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/application.js b/sonar-server/src/main/webapp/javascripts/application.js index 075869ff932..0c4ef77c201 100644 --- a/sonar-server/src/main/webapp/javascripts/application.js +++ b/sonar-server/src/main/webapp/javascripts/application.js @@ -346,8 +346,9 @@ function openAccordionItem(url, elt, updateCurrentElement) { // Remove all accordion items after current element elementToRemove.remove(); loading.insertAfter(currentElement); - } else { + // Current element is not in a working view, remove all working views + $j('.'+ htmlClass).remove(); loading.insertAfter($j("#accordion-panel")); } @@ -361,8 +362,6 @@ function openAccordionItem(url, elt, updateCurrentElement) { } } else { $j("#accordion-panel").height('auto'); - // Current element is not in a working view, remove all working views - $j('.'+ htmlClass).remove(); } if (updateCurrentElement) { |