aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-05-19 14:50:49 +0200
committerFabrice Bellingard <bellingard@gmail.com>2011-05-19 14:50:49 +0200
commit1dfe5d781675f0a7dfe19dce93757a47262abbae (patch)
tree8dad9f42eccb6ce1900f90235e02e89c98a24134
parentdfa4abac0c4ae0ab70a6f42e5ace72d9212ffb30 (diff)
downloadsonarqube-1dfe5d781675f0a7dfe19dce93757a47262abbae.tar.gz
sonarqube-1dfe5d781675f0a7dfe19dce93757a47262abbae.zip
SONAR-2402 When specifying a review id in the "Reviews" page, all other filter value should be deactivated/reinitialized
Done on Web client side, in Javascript, so that the result is consistent with what the user sees on the search criteria.
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb13
1 files changed, 12 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb
index c8970c6ebb5..9946a4564f8 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb
@@ -1,3 +1,14 @@
+<script>
+function reviewIdFieldModified(field) {
+ if (field.value!='') {
+ $('statuses').value = ''
+ $('severities').value = ''
+ $('projects').value = ''
+ $('authors').value = ''
+ $('assignees').value = ''
+ }
+}
+</script>
<div id="reviews-search">
<h1>Reviews</h1>
<% form_tag({:action => 'index'}, {:method => 'get'}) do %>
@@ -51,7 +62,7 @@
</td>
<td width="1%" nowrap>
<span class="note">Id</span><br/>
- <%= text_field_tag "review_id", @id, :size => 10 -%>
+ <%= text_field_tag "review_id", @id, :size => 10, :onkeyup => "reviewIdFieldModified(this)" -%>
<br/>
<br/>
<br/>