From: stephenbroyer Date: Fri, 9 Aug 2013 15:07:31 +0000 (+0200) Subject: SONAR-4517 move Quality Profiles pages to Jquery X-Git-Tag: 3.7.1-RC1-~132 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=30c3ccb18652f9bc5bb5108a2a80a07199cc9008;p=sonarqube.git SONAR-4517 move Quality Profiles pages to Jquery --- 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; }