From 30c3ccb18652f9bc5bb5108a2a80a07199cc9008 Mon Sep 17 00:00:00 2001 From: stephenbroyer Date: Fri, 9 Aug 2013 17:07:31 +0200 Subject: [PATCH] SONAR-4517 move Quality Profiles pages to Jquery --- .../webapp/WEB-INF/app/views/dashboard/configure.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb index 3b6aeb0f3e0..310216edab0 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb @@ -67,13 +67,13 @@ portal.highlightWidget(<%= params[:highlight] -%>); <% end %> } - Event.observe(window, 'load', init_dashboard, false); + $j(document).ready(function(){init_dashboard();}); function filterWidgetsByCategory(category) { $j('#filter-widgets-loading').show(); $j.ajax ({ url: '<%= add_category_to_url(url_for dashboard_action(:widget_definitions)) -%>' + encodeURIComponent(category), success: function(responseHTML){$j('#widget_defs').html(responseHTML);}, - error:function(error){alert('error');}, + error:function(error){alert('error');} }); return false; } -- 2.39.5