From 8dd38c6cf9bfe76b5a98b50785934ea03e5353df Mon Sep 17 00:00:00 2001 From: stephenbroyer Date: Mon, 23 Sep 2013 14:19:18 +0200 Subject: [PATCH] SONAR-4673 Remove prototypejs from "System" administration console (other functions line 102 to 134) --- .../app/views/bulk_deletion/index.html.erb | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/index.html.erb index 71f8d5cc7c3..7a9f996432d 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/index.html.erb @@ -100,37 +100,37 @@ } function selectOrDeselect() { - var status = $('r-all').checked; - $$('tbody input').each(function(input) { + var status = $j('#r-all').prop('checked'); + $j('tbody input').each(function(index,input) { input.checked = status; }); <% if found_resources_count - @query_result.components.size > 0 %> selectNotAllResources(); if (status) { - $('select_all_action').show(); + $j('#select_all_action').show(); } else { - $('select_all_action').hide(); + $j('#select_all_action').hide(); } <% end %> } function handleSelectAllAction() { - if ($('all_resources').value=='') { + if ($j('#all_resources').val()=='') { selectAllResources(); } else { - $('r-all').checked = false; + $j('#r-all').checked = false; selectOrDeselect(); } } function selectAllResources() { - $('all_resources').value = '<%= found_resources_ids -%>'; - $('select_all_action').innerHTML = '<%= message('bulk_deletion.clear_selection', :params => found_resources_count) -%>'; + $j('#all_resources').val() = '<%= found_resources_ids -%>'; + $j('#select_all_action').html('<%= message('bulk_deletion.clear_selection', :params => found_resources_count) -%>'); } function selectNotAllResources() { - $('all_resources').value = ''; - $('select_all_action').innerHTML = '<%= message('bulk_deletion.select_all_x_resources', :params => found_resources_count) -%>'; + $j('#all_resources').val() = ''; + $j('#select_all_action').html('<%= message('bulk_deletion.select_all_x_resources', :params => found_resources_count) -%>'); } -- 2.39.5