@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' -%>
+
+ <span id="loading" style="display: none;"><%= image_tag 'loading.gif' -%></span>
</form>
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] -%>
<%= link_to_function message('cancel'), "cancelViolationAction(#{params[:id]})" -%>
+
+ <span id="loading-<%= params[:id] -%>" style="display: none;"><%= image_tag 'loading.gif' -%></span>
</div>
</form>