diff options
-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) { |