Skip to content

Commit

Permalink
[#1251] Add searching to recline grid
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbaptista committed May 6, 2014
1 parent e00ef1b commit 1a6e562
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
13 changes: 7 additions & 6 deletions ckanext/reclinepreview/theme/public/css/recline.css
Expand Up @@ -20,15 +20,12 @@ body {
}

.recline-pager .pagination {
margin: 10px 0 0 0;
}

.recline-pager .pagination ul {
box-shadow: none;
margin: 0;
float: left;
}

.recline-pager .pagination a {
padding: 0 10px;
line-height: 26px;
}

.recline-pager .pagination input {
Expand All @@ -37,6 +34,10 @@ body {
padding: 2px 4px;
}

.recline-query-editor {
float: right;
}

.loading-spinner {
float: right;
background-image: url('../img/ajaxload-circle.gif');
Expand Down
5 changes: 3 additions & 2 deletions ckanext/reclinepreview/theme/public/preview_recline.js
Expand Up @@ -103,7 +103,8 @@ this.ckan.module('reclinepreview', function (jQuery, _) {
// default to Grid
view = new recline.View.SlickGrid({model: dataset});
controls = [
new recline.View.Pager({model: view.model.queryState})
new recline.View.Pager({model: view.model.queryState}),
new recline.View.QueryEditor({model: view.model.queryState})
];
}

Expand All @@ -128,7 +129,7 @@ this.ckan.module('reclinepreview', function (jQuery, _) {
},

_renderControls: function (el, controls, className) {
var controlsEl = $("<div class=\"" + className + "\" />");
var controlsEl = $("<div class=\"clearfix " + className + "\" />");
for (var i = 0; i < controls.length; i++) {
controlsEl.append(controls[i].el);
}
Expand Down

0 comments on commit 1a6e562

Please sign in to comment.