From 34cf70ec5f819b453829f0031a32105c403f18ca Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Mon, 3 Dec 2012 11:01:30 +0100 Subject: [PATCH] SONAR-2342 Improve code --- .../webapp/WEB-INF/app/views/layouts/_user_panel.html.erb | 2 +- sonar-server/src/main/webapp/javascripts/recent-history.js | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_user_panel.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_user_panel.html.erb index e1727eb5a77..34c65ffdf01 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_user_panel.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_user_panel.html.erb @@ -1,6 +1,6 @@ diff --git a/sonar-server/src/main/webapp/javascripts/recent-history.js b/sonar-server/src/main/webapp/javascripts/recent-history.js index d7eabd53a37..08fd5b23e74 100644 --- a/sonar-server/src/main/webapp/javascripts/recent-history.js +++ b/sonar-server/src/main/webapp/javascripts/recent-history.js @@ -1,7 +1,6 @@ window.Sonar = {}; -Sonar.RecentHistory = function (applicationContext) { - this.appContext = applicationContext; +Sonar.RecentHistory = function () { }; Sonar.RecentHistory.prototype.getRecentHistory = function() { @@ -50,10 +49,10 @@ Sonar.RecentHistory.prototype.populateRecentHistoryPanel = function () { } else { recentHistory.forEach(function (resource) { historyLinksList.append('
  • ' -- 2.39.5