aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/project_reviews/_review_command_form.html.erb3
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_comment_form.html.erb3
2 files changed, 6 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/project_reviews/_review_command_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/project_reviews/_review_command_form.html.erb
index cc4ff3bb746..285bfcc4611 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/project_reviews/_review_command_form.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/project_reviews/_review_command_form.html.erb
@@ -7,7 +7,10 @@
@review_command.getName(),
:url => {:action => 'run_review_command'},
:html => {:id => "submit_btn"},
+ :loading => "$('loading').show();",
:update => 'review' -%>
 
<%= link_to_remote message('cancel'), :url => {:action => 'show', :id => params[:id]}, :update => 'review' -%>
+ &nbsp;
+ <span id="loading" style="display: none;"><%= image_tag 'loading.gif' -%></span>
</form>
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_comment_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_comment_form.html.erb
index fcf463c4d9e..3180334ab96 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_comment_form.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_comment_form.html.erb
@@ -37,8 +37,11 @@
button_label,
:url => {:action => 'violation_save_comment'},
:html => {:id => "submit_btn"+params[:id]}.merge(@review_command ? {} : {:disabled => "true"}),
+ :loading => "$('loading-#{params[:id]}').show();",
:update => 'vId'+params[:id] -%>
&nbsp;
<%= link_to_function message('cancel'), "cancelViolationAction(#{params[:id]})" -%>
+ &nbsp;
+ <span id="loading-<%= params[:id] -%>" style="display: none;"><%= image_tag 'loading.gif' -%></span>
</div>
</form>