aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-07-15 15:17:43 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-07-15 15:17:51 +0200
commit7450b880ca6d8631061d3e1639cc06e10d8877d4 (patch)
treef5e0362b7ea032d9478d91663826847bfc0c7820
parent2e45907d4434e7369289c9cde3cbabea311bbde0 (diff)
downloadsonarqube-7450b880ca6d8631061d3e1639cc06e10d8877d4.tar.gz
sonarqube-7450b880ca6d8631061d3e1639cc06e10d8877d4.zip
Fix some JS quality flaws
-rw-r--r--sonar-server/src/main/webapp/javascripts/application.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/application.js b/sonar-server/src/main/webapp/javascripts/application.js
index 41919bd52a1..b3085ad709f 100644
--- a/sonar-server/src/main/webapp/javascripts/application.js
+++ b/sonar-server/src/main/webapp/javascripts/application.js
@@ -132,8 +132,12 @@ var SelectBox = {
a = a.text.toLowerCase();
b = b.text.toLowerCase();
try {
- if (a > b) return 1;
- if (a < b) return -1;
+ if (a > b) {
+ return 1;
+ }
+ if (a < b) {
+ return -1;
+ }
}
catch (e) {
// silently fail on IE 'unknown' exception
@@ -238,7 +242,7 @@ Treemap.prototype.initNodes = function () {
}
}
- )
+ );
});
};
@@ -431,7 +435,7 @@ var hideCurrentDropdownMenu = function () {
currentlyDisplayedDropdownMenu.hide();
}
$j(document).unbind('mouseup', hideCurrentDropdownMenu);
-}
+};
var clickOnDropdownMenuLink = function (event) {
var link = $j(event.target).children('a');
@@ -445,7 +449,7 @@ var clickOnDropdownMenuLink = function (event) {
link.click();
}
}
-}
+};
function showDropdownMenu(menuId) {
showDropdownMenuOnElement($j('#' + menuId));