app/models/inputs/asset_box.rb in effective_assets-1.4.6 vs app/models/inputs/asset_box.rb in effective_assets-1.4.7

- old
+ new

@@ -131,10 +131,11 @@ render( :partial => "asset_box_input/#{attachment_partial}", :locals => { :attachment => attachment, :attachment_actions => @options[:attachment_actions].map(&:to_s), + :attachment_links => @options[:attachment_links], :hidden => (count > @options[:limit]), :disabled => @options[:disabled], :attachable_object_name => @object_name, } ) @@ -154,9 +155,10 @@ :uploader => true, # :top, :bottom, true or false :uploader_drop_files => false, :drop_files_help_text => 'Drop files here', :progress_bar_partial => 'asset_box_input/progress_bar_template', :attachment_style => :thumbnail, # :thumbnail, :table, or :list + :attachment_links => true, :attachment_add_to => :bottom, # :bottom or :top (of attachments div) :attachment_actions => [:remove], # or :insert, :delete, :remove :table_filter_bar => false, :dialog => false, :dialog_url => @template.effective_assets.effective_assets_path,