Skip to content

Commit

Permalink
Fix pagination links.
Browse files Browse the repository at this point in the history
  • Loading branch information
briandmcnabb committed Sep 28, 2013
1 parent 2c89198 commit 7e9acef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions app/views/cms/resource/_pagination.html.haml
@@ -0,0 +1,3 @@
- begin
.span14.offset1= will_paginate(collection, remote: true)
-rescue
5 changes: 1 addition & 4 deletions app/views/cms/resource/index.html.haml
@@ -1,6 +1,3 @@
#index.row
= render partial: index_partial, layout: 'panel', locals: { attributes: index_attributes(collection) }

- begin
.span14.offset1= will_paginate(collection, remote: true)
-rescue
#pagination-partial= render 'pagination'
1 change: 1 addition & 0 deletions app/views/cms/resource/index.js.erb
@@ -1,5 +1,6 @@
// Update Partial
$("div#content").html("<%= j render 'index-table', attributes: index_attributes(collection) %>");
$("div#pagination-partial").html("<%= j render 'pagination' %>");


// Clear Form
Expand Down

0 comments on commit 7e9acef

Please sign in to comment.