]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2706 Should start displaying the 'loading' icon sooner
authorFabrice Bellingard <bellingard@gmail.com>
Tue, 15 May 2012 14:56:59 +0000 (16:56 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Tue, 15 May 2012 14:57:44 +0000 (16:57 +0200)
=> Before initiating the request (I guess the ITs are failing because
   of this)

sonar-server/src/main/webapp/WEB-INF/app/views/project_reviews/_review_command_form.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_comment_form.html.erb

index 5d356a3fe8231adca32bf26f157b4312cc9594fd..b0dcfa5e799f2771dd40add79f8afddc80fb496f 100644 (file)
@@ -7,7 +7,7 @@
                        Review.command_label(@review_command),
                        :url => {:action => 'run_review_command'},
                        :html => {:id => "submit_btn"},
-                       :loading => "$('loading').show();",
+                       :before => "$('loading').show();",
                        :update => 'review' -%>
   &nbsp;
   <%= link_to_remote message('cancel'), :url => {:action => 'show', :id => params[:id]}, :update => 'review' -%>
index 755afb57adddb75060aea989bad830cd90d85600..1f8c3c71696871a20603d41f20f671e4b4122381 100644 (file)
@@ -37,7 +37,7 @@
                          button_label,
                          :url => {:action => 'violation_save_comment'},
                          :html => {:id => "submit_btn"+params[:id]}.merge(@review_command ? {} : {:disabled => "true"}),
-                         :loading => "$('loading-#{params[:id]}').show();",
+                         :before => "$('loading-#{params[:id]}').show();",
                          :update => 'vId'+params[:id] -%>
     &nbsp;
     <%= link_to_function message('cancel'), "cancelViolationAction(#{params[:id]})" -%>