]> source.dussan.org Git - sonarqube.git/commitdiff
Fix links on dropdown menu
authorJulien Lancelot <julien.lancelot@gmail.com>
Fri, 24 May 2013 10:21:08 +0000 (12:21 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Fri, 24 May 2013 10:21:08 +0000 (12:21 +0200)
sonar-server/src/main/webapp/javascripts/application.js

index c95988905837ae8d21441a91b7d3cd47ccfba458..dd4949e7d93afc0f3a0319586aefdc44bbd18f89 100644 (file)
@@ -451,13 +451,14 @@ function showDropdownMenu(menuId) {
 
 function showDropdownMenuOnElement(elt) {
   var dropdownElt = $j(elt);
-  var dropdownChildren = dropdownElt.children('li');
 
   if (dropdownElt == currentlyDisplayedDropdownMenu) {
     currentlyDisplayedDropdownMenu = "";
   } else {
     currentlyDisplayedDropdownMenu = dropdownElt;
     $j(document).mouseup(hideCurrentDropdownMenu);
+
+    var dropdownChildren = dropdownElt.find('li');
     dropdownChildren.unbind('click');
     dropdownChildren.click(clickOnDropdownMenuLink);
     dropdownElt.show();