]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4517 move Quality Profiles pages to Jquery
authorstephenbroyer <stephen.broyer@sonarsource.com>
Fri, 9 Aug 2013 15:07:31 +0000 (17:07 +0200)
committerstephenbroyer <stephen.broyer@sonarsource.com>
Fri, 9 Aug 2013 15:09:46 +0000 (17:09 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb

index 3b6aeb0f3e0e08644060882526f0770d2128f0cc..310216edab045d790ee7d54a6bb8f317ca568910 100644 (file)
     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;
   }