]> source.dussan.org Git - sonarqube.git/commitdiff
[SONAR-1973] Fix small issue with icon replacement after creating an
authorFabrice Bellingard <bellingard@gmail.com>
Tue, 12 Apr 2011 20:32:10 +0000 (22:32 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Wed, 20 Apr 2011 06:52:56 +0000 (08:52 +0200)
issue

sonar-server/src/main/webapp/WEB-INF/app/views/reviews/create_result.js.rjs

index 0a771dac806f51cd6c7b071c886440f590f29843..aa8ac5ad6182ac71473b44844dc8a5205bd4b7e3 100644 (file)
@@ -1,6 +1,6 @@
-if @reviews
-  page.hide "createReviewLink" + @review.rule_failure_id.to_s
-  page.replace_html "reviewFailure" + @review.rule_failure_id.to_s, :partial => "list", :locals => { :reviews => @reviews }
-else
-  page.replace_html "reviewFailure" + @review.rule_failure_id.to_s, :partial => "form"
+if @reviews\r
+  page.replace_html "createReviewLink" + @review.rule_failure_id.to_s, image_tag("reviews/review.png")\r
+  page.replace_html "reviewFailure" + @review.rule_failure_id.to_s, :partial => "list", :locals => { :reviews => @reviews }\r
+else\r
+  page.replace_html "reviewFailure" + @review.rule_failure_id.to_s, :partial => "form"\r
 end
\ No newline at end of file