Project

General

Profile

« Previous | Next » 

Revision 82b4749e

Added by Marek Hulán about 10 years ago

Fixes #5664 - Host filters can use taxonomies

Also disables taxonomy filters on resources that do not support them.

View differences:

app/views/permissions/index.js.erb
$('#granular_form').hide();
$('#filter_unlimited').prop('checked', true);
<% end %>
<% if @show_organizations %>
$('li a[href="#organizations"]').show();
<% else %>
$('li a[href="#organizations"]').hide();
<% end %>
$('#filter_resource_type').attr('data-allow-organizations', <%= !!@show_organizations %>);
<% if @show_locations %>
$('li a[href="#locations"]').show();
<% else %>
$('li a[href="#locations"]').hide();
<% end %>
$('#filter_resource_type').attr('data-allow-locations', <%= !!@show_locations %>);

Also available in: Unified diff