]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-968 Use jQuery syntax over Prototype's one
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Fri, 28 Sep 2012 12:50:56 +0000 (14:50 +0200)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Fri, 28 Sep 2012 12:51:41 +0000 (14:51 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb

index 5e0f823f38101367e618ebf8f3e6e9595c058ee4..76f2a871e1e39f55cbbcdcb750290b3d29ef6c25 100644 (file)
@@ -68,7 +68,7 @@
                 <% end %>
                 <%= qualifier_icon(resource) -%>&nbsp;
                 <% if resource.source_code? %>
-                  <a href="#" onclick="$$('#col_<%= index -%> tr').invoke('removeClassName', 'selected'); $('row_<%= index -%>_<%= row_index -%>').addClassName('selected'); d(<%= resource.id -%>)" 
+                  <a href="#" onclick="$j('#col_<%= index -%> tr').removeClass('selected'); $j('#row_<%= index -%>_<%= row_index -%>').addClass('selected'); d(<%= resource.id -%>)" 
                      alt="<%= resource.name(true) -%>" title="<%= resource.name(true) -%>"><%= resource.name(false) -%></a>
                 <% else %>
                   <%= link_to(resource.name, {:only_path => true, :overwrite_params => {:rids => (selected ? rids-[resource.id] : rids+[resource.id])}}) -%>
index ceaeddf1f2b0c70c94434e71a044a62061e5ea52..79346c11dbc8eafb0b06c84611dac3894108713c 100644 (file)
               <% end %>
               <%= qualifier_icon(resource) -%>&nbsp;
               <% if resource.source_code? %>
-                <a href="#" onclick="$$('#col_<%= index -%> tr').invoke('removeClassName', 'selected'); $('row_<%= index -%>_<%= row_index -%>').addClassName('selected'); d(<%= resource.id -%>);" 
+                <a href="#" onclick="$j('#col_<%= index -%> tr').removeClass('selected'); $j('#row_<%= index -%>_<%= row_index -%>').addClass('selected'); d(<%= resource.id -%>);" 
                    alt="<%= resource.name(true) -%>" title="<%= resource.name(true) -%>"><%= resource.name(false) %></a>
               <% else %>
                 <%= link_to(h(resource.name), {:only_path => true, :overwrite_params => {:rids => (selected ? rids-[resource.id] : rids+[resource.id])}}) -%>