]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2388 clear the "Assigned to" field when appropriate
authorFabrice Bellingard <bellingard@gmail.com>
Fri, 27 May 2011 07:23:43 +0000 (09:23 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Fri, 27 May 2011 07:23:43 +0000 (09:23 +0200)
Clear the "Assigned to" field when the options "With false-positives"
and "Only false-positives" are selected otherwise no result is
returned as false-positive review are automatically unassigned.

sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb

index bb2b91e8aa9155dad9501dbbb87bc629dba5b60d..65698bb2fc0f3b45a07c6f22c3d470514556584e 100644 (file)
@@ -70,7 +70,7 @@ function launchSearch(columnName, link) {
           <%= user_autocomplete_field "assignee_id", @assignee_id, { :class => "max-width" } -%>
           <br/>
           <br/>
-          <select name="false_positives" id="false_positives" class="withIcons">
+          <select name="false_positives" id="false_positives" class="withIcons" onchange="if(this.value=='only' || this.value=='with') {$('assignee_id').value = ''; $('autocompleteText-assignee_id').value = '';};">
             <option <%= 'selected' if @false_positives=='without' -%> value="without" class="sel-without-false-positives">Without false positives</option>
             <option <%= 'selected' if @false_positives=='only' -%> value="only" class="sel-only-false-positives">Only false positives</option>
             <option <%= 'selected' if @false_positives=='with' -%> value="with" class="sel-with-false-positives">With false positives</option>