]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaws
authorStas Vilchik <vilchiks@gmail.com>
Fri, 18 Apr 2014 09:46:12 +0000 (15:46 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 18 Apr 2014 09:46:12 +0000 (15:46 +0600)
sonar-server/src/main/js/application.js
sonar-server/src/main/js/issues/app.js
sonar-server/src/main/js/issues/extra.js

index fc8acd0923081ffbd30a1ac5e7618345a4ea27c5..7c3508d43e55d69ea2aa7d6176bafd15c1b01a27 100644 (file)
@@ -555,7 +555,7 @@ jQuery(function() {
 
 
   // Define global shortcuts
-  key('s', function(e) { //
+  key('s', function() {
     jQuery('#searchInput').focus();
     return false;
   });
index 35a930b2617d6157af5a3c1041e9e3c57ebb8b9c..24bcceea5ad591ff604d6b39fec0fde5bfa23457 100644 (file)
@@ -329,9 +329,15 @@ requirejs(
       NavigatorApp.addInitializer(function () {
         var that = this;
         jQuery('body')
-            .on('mousemove', function (e) { that.processResize(e); })
-            .on('mouseup', function (e) { that.stopResize(); });
-        jQuery('.navigator-resizer').on('mousedown', function (e) { that.startResize(e); });
+            .on('mousemove', function (e) {
+              that.processResize(e);
+            })
+            .on('mouseup', function () {
+              that.stopResize();
+            });
+        jQuery('.navigator-resizer').on('mousedown', function (e) {
+          that.startResize(e);
+        });
 
         var resultsWidth = localStorage.getItem('issuesResultsWidth');
         if (resultsWidth) {
index 1a8d953f534accf2d3d15c7eebd2a5691f39e65e..83df044945fcd561d6ea95138c13b783e22abd90 100644 (file)
@@ -245,7 +245,9 @@ define(
 
 
         initialize: function() {
-          var openIssue = function(el) { el.click(); };
+          var openIssue = function(el) {
+            el.click();
+          };
           this.openIssue = _.debounce(openIssue, 300);
         },
 
@@ -333,8 +335,12 @@ define(
 
         bindShortcuts: function () {
           var that = this;
-          key('up', 'list', function() { that.selectPrev(); });
-          key('down', 'list', function() { that.selectNext(); });
+          key('up', 'list', function() {
+            that.selectPrev();
+          });
+          key('down', 'list', function() {
+            that.selectNext();
+          });
         }
 
       });