Permalink
Browse files

Merge pull request #880 from kiramccoan/issue879

 Issue #879: Fixing pagination and jump to drop down in mark spreadsheet view
  • Loading branch information...
jerboaa committed Oct 12, 2012
2 parents 467c14f + 0a878eb commit ba47004aa127c0cbed1f1da69f4deda6bff973dc
Showing with 5 additions and 4 deletions.
  1. +4 −4 app/views/grade_entry_forms/_grades_table_filters.html.erb
  2. +1 −0 config/routes.rb
@@ -4,11 +4,11 @@
<%= select_tag "alpha_category",
options_for_select(alpha_pagination_options, alpha_category),
:onchange => "ap_thinking_start('grades');
- new Ajax.Request(
+ new Ajax.Request('" +
g_table_paginate_grade_entry_form_path(
:id => grade_entry_form.id,
:filter => filter,
- :sort_by => sort_by),
+ :sort_by => sort_by)+ "',
{ asynchronous:true,
evalScripts:true,
onComplete:function(request){ap_thinking_stop();},
@@ -25,11 +25,11 @@
<%= t('pagination.show') %>
<%= select_tag "per_page", options_for_select(per_pages, per_page.to_i),
:onchange => "ap_thinking_start('grades');
- new Ajax.Request(
+ new Ajax.Request('" +
g_table_paginate_grade_entry_form_path(
:id => grade_entry_form.id,
:filter => filter,
- :sort_by => sort_by),
+ :sort_by => sort_by)+ "',
{ asynchronous:true,
evalScripts:true,
onComplete:function(request){ap_thinking_stop();},
View
@@ -228,6 +228,7 @@
member do
get 'grades'
get 'g_table_paginate'
+ post 'g_table_paginate'
get 'csv_download'
post 'csv_upload'
post 'update_grade'

0 comments on commit ba47004

Please sign in to comment.