Skip to content

Commit

Permalink
[#1792] Show dropdowns only for columns with filters set
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbaptista committed Jun 24, 2014
1 parent f376533 commit 7338045
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/public/base/javascript/modules/resource-view-filters.js
Expand Up @@ -15,7 +15,9 @@ this.ckan.module('resource-view-filters', function (jQuery, _) {
var dropdowns = $('<div></div>'); // FIXME: We don't need a div

$.each(columnsValues, function (filter, values) {
dropdowns.append(_buildDropdown(self.el, template, filter, values));
if (ckan.views.viewhelpers.filters.get(filter)) {
dropdowns.append(_buildDropdown(self.el, template, filter, values));
}
});

el.append(dropdowns);
Expand Down

0 comments on commit 7338045

Please sign in to comment.