From: Stas Vilchik Date: Fri, 18 Apr 2014 09:46:12 +0000 (+0600) Subject: Fix quality flaws X-Git-Tag: 4.3~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b3847864bb18fc6dbbdb9290497073fc8d43f2e8;p=sonarqube.git Fix quality flaws --- diff --git a/sonar-server/src/main/js/application.js b/sonar-server/src/main/js/application.js index fc8acd09230..7c3508d43e5 100644 --- a/sonar-server/src/main/js/application.js +++ b/sonar-server/src/main/js/application.js @@ -555,7 +555,7 @@ jQuery(function() { // Define global shortcuts - key('s', function(e) { // + key('s', function() { jQuery('#searchInput').focus(); return false; }); diff --git a/sonar-server/src/main/js/issues/app.js b/sonar-server/src/main/js/issues/app.js index 35a930b2617..24bcceea5ad 100644 --- a/sonar-server/src/main/js/issues/app.js +++ b/sonar-server/src/main/js/issues/app.js @@ -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) { diff --git a/sonar-server/src/main/js/issues/extra.js b/sonar-server/src/main/js/issues/extra.js index 1a8d953f534..83df044945f 100644 --- a/sonar-server/src/main/js/issues/extra.js +++ b/sonar-server/src/main/js/issues/extra.js @@ -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(); + }); } });