Skip to content

Commit

Permalink
Merge pull request #654 from hansonwu/404_remote_tags
Browse files Browse the repository at this point in the history
Closes #404
  • Loading branch information
jerboaa committed Feb 12, 2012
2 parents 0792c44 + 7255b5a commit a9b74f8
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions app/views/graders/index.html.erb
Expand Up @@ -128,11 +128,19 @@ document.observe("dom:loaded", function(){

</div><!-- Notice -->

<%= form_remote_tag :url => global_actions_assignment_graders_path(
@assignment),
:html => {:id => "global_action_form"},
:loading => "thinking();",
:complete => "done_thinking();" do %>
<%= form_tag url_for(global_actions_assignment_graders_path(@assignment)),
:id => "global_action_form",
:remote => true do %>

<script type='text/javascript'>
$("global_action_form").observe('ajax:after', function(evt, status, data, xhr) {
thinking();
});

$("global_action_form").observe('ajax:complete', function(evt, status, data, xhr) {
done_thinking();
});
</script>

<%= hidden_field_tag 'submit_type', 'global_action', :id => 'submit_type' %>
<%= hidden_field_tag 'current_table', 'groups_table', :id => 'current_table' %>
Expand Down

0 comments on commit a9b74f8

Please sign in to comment.