app/views/admin/assets/_browser.html.erb in beef-has_assets-0.6.2 vs app/views/admin/assets/_browser.html.erb in beef-has_assets-0.6.3
- old
+ new
@@ -6,12 +6,11 @@
<% asset_types.each do |asset_type, assets| %>
<dt class="<%= asset_type.split('/').first.parameterize %>" id="<%= asset_type.parameterize %>-<%= assets.first.id %>"><%= asset_type %></dt>
<dd id="<%= asset_type.parameterize %>-description">
<h3 class="type-heading"><%= asset_type %></h3>
<ul id="<%= asset_type.parameterize %>-list" class="asset-list">
-<%= render :partial => "admin/assets/category_contents", :locals => { :assets => assets, :for_content => for_content } unless ajaxify %>
</ul>
</dd>
<% end -%>
</dl>
-<%= javascript_tag "new AssetBrowser('#{@grouping}', '#{params[:folder]}', #{for_content.to_s}, #{ajaxify.to_s});" %>
+<%= javascript_tag "new AssetBrowser('#{(@grouping || 'by_category')}', '#{params[:folder]}', #{for_content.to_s});" %>