app/models/inputs/asset_box.rb in effective_assets-1.9.11 vs app/models/inputs/asset_box.rb in effective_assets-1.9.12

- old
+ new

@@ -91,14 +91,20 @@ unless (EffectiveAssets.authorized?(@template.controller, :create, asset) rescue false) @options[:btn_title] = 'Unable to upload. (cannot :create Effective::Asset)' @options[:disabled] = true end + html_class = [ + ('drop-files' if @options[:uploader_drop_files]), + ((@options[:uploader_html] || {})[:class]) + ].compact.join(' ') + render( :partial => 'asset_box_input/uploader', :locals => { :uid => @options[:uid], :click_submit => @options[:click_submit], + :html_class => html_class, :limit => @options[:limit], :disabled => @options[:disabled], :required => (@options[:required] == true && attachments.length == 0), :file_types => @options[:file_types], :progress_bar_partial => @options[:progress_bar_partial],