diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-09 08:06:34 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-09 08:06:34 +0000 |
commit | 7c6075ea10a95a4e74e85a07a55167558a2729a4 (patch) | |
tree | c3a3eb5dd1c74eb84b806a51c5327e1de6d1cc13 | |
parent | 2b004319e0c6b67c7a3649a0c7954be223f7f282 (diff) |
add paging to authority search results
-rw-r--r-- | app/views/request/select_authority.rhtml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/request/select_authority.rhtml b/app/views/request/select_authority.rhtml index bf616ad89..9692c4cb2 100644 --- a/app/views/request/select_authority.rhtml +++ b/app/views/request/select_authority.rhtml @@ -14,7 +14,7 @@ })); // We're using the existing body list: we intercept the clicks on the titles to // display a preview on the right hand side of the screen - $("#typeahead_response a").live('click', function() { + $("#typeahead_response .head a").live('click', function() { $("#authority_preview").load(this.href+" #public_body_show", function() { $("#authority_preview").show(); $("#authority_preview #header_right").hide(); @@ -56,6 +56,8 @@ <%= render :partial => 'public_body/body_listing_single', :locals => { :public_body => result[:model] } %> <% end %> </div> + <%= will_paginate WillPaginate::Collection.new(@page, 5, @xapian_requests.matches_estimated) %> + <% end %> |