aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorstephenbroyer <stephen.broyer@sonarsource.com>2013-09-23 14:19:18 +0200
committerstephenbroyer <stephen.broyer@sonarsource.com>2013-09-23 14:56:56 +0200
commit8dd38c6cf9bfe76b5a98b50785934ea03e5353df (patch)
tree92b0dd4d2619d1f91989f26e371ff72ef3deea21 /sonar-server
parentbcd296664338144b833b4b012b6783ca9a9ee208 (diff)
downloadsonarqube-8dd38c6cf9bfe76b5a98b50785934ea03e5353df.tar.gz
sonarqube-8dd38c6cf9bfe76b5a98b50785934ea03e5353df.zip
SONAR-4673 Remove prototypejs from "System" administration console
(other functions line 102 to 134)
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/index.html.erb20
1 files 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) -%>');
}
</script>