Skip to content

Commit

Permalink
[#1251] Add pagination widget to Recline Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
John authored and John committed Nov 20, 2013
1 parent 4bd5cbc commit 36982ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckanext/reclinepreview/theme/public/preview_recline.js
Expand Up @@ -92,7 +92,10 @@ this.ckan.module('reclinepreview', function (jQuery, _) {

view = new recline.View.Map({model: dataset, state: state});
} else {
// default to Grid
view = new recline.View.SlickGrid({model: dataset});
this.pager = new recline.View.Pager({model: view.model.queryState});
$('#recline-controls').append(this.pager.el);
}

this.el.replaceWith(view.el);
Expand Down
2 changes: 2 additions & 0 deletions ckanext/reclinepreview/theme/templates/recline_view.html
@@ -1,6 +1,8 @@
{% extends "base.html" %}

{% block page %}
<div id="recline-controls"></div>

<div data-module="reclinepreview" data-module-site_url="{{ h.dump_json(h.url('/', locale='default', qualified=true)) }}">
<h4 class="loading-dialog">
<div class="loading-spinner"></div>
Expand Down

0 comments on commit 36982ac

Please sign in to comment.