Skip to content

Commit

Permalink
[#1251] Fix jshint issues on preview_recline.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbaptista committed May 12, 2014
1 parent 100633c commit 36360ce
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ckanext/reclinepreview/theme/public/preview_recline.js
Expand Up @@ -56,15 +56,15 @@ this.ckan.module('reclinepreview', function (jQuery, _) {
dataset = new recline.Model.Dataset(resourceData);

var query = new recline.Model.Query();
query.set({ size : reclineView.limit || 100 })
query.set({ from : reclineView.offset || 0 })
if(window.parent.ckan.views && window.parent.ckan.views.viewhelpers){
$.each(window.parent.ckan.views.viewhelpers.filters.get(), function(field,values){
query.addFilter({type: 'term', field: field, term: values})
})
query.set({ size: reclineView.limit || 100 });
query.set({ from: reclineView.offset || 0 });
if (window.parent.ckan.views && window.parent.ckan.views.viewhelpers) {
$.each(window.parent.ckan.views.viewhelpers.filters.get(), function (field,values) {
query.addFilter({type: 'term', field: field, term: values});
});
}

dataset.query(query)
dataset.query(query);

errorMsg = this.options.i18n.errorLoadingPreview + ': ' + this.options.i18n.errorDataStore;
dataset.fetch()
Expand Down

0 comments on commit 36360ce

Please sign in to comment.