Skip to content

Commit

Permalink
Explicitly list recline sidebar views (so 'fields'
Browse files Browse the repository at this point in the history
is excluded).
  • Loading branch information
johnglover committed Nov 7, 2012
1 parent c04db95 commit a037ee8
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions ckan/public/base/datapreview/preview_recline.js
Expand Up @@ -123,18 +123,25 @@ this.ckan.module('reclinepreview', function (jQuery, _) {
}
];

var sidebarViews = [
{
id: 'filterEditor',
label: 'Filters',
view: new recline.View.FilterEditor({
model: dataset
})
}
];

var dataExplorer = new recline.View.MultiView({
el: this.el,
model: dataset,
views: views,
sidebarViews: sidebarViews,
config: {
readOnly: true
}
});

// Hide the fields control by default
// (This should be done in recline!)
// jQuery('.menu-right a[data-action="fields"]', self.el).click();
},
normalizeFormat: function (format) {
var out = format.toLowerCase();
Expand All @@ -150,4 +157,4 @@ this.ckan.module('reclinepreview', function (jQuery, _) {
}
}
};
});
});

0 comments on commit a037ee8

Please sign in to comment.