|
|
|
@ -22,13 +22,13 @@
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<button name="button" class="f_l ml10" onclick="_file.click()" onmouseover="this.focus()" type="button" style="width:20%; height:26%;"><%= l(:label_browse)%></button>
|
|
|
|
|
<button name="button" class="f_l ml10" onclick="_file.click()" onmouseover="this.focus()" type="button" style="<%= ie8? ? 'display:none' : '' %>; width:20%; height:26%;"><%= l(:label_browse)%></button>
|
|
|
|
|
<%= file_field_tag 'attachments[dummy][file]',
|
|
|
|
|
:id => '_file',
|
|
|
|
|
:class => 'file_selector',
|
|
|
|
|
:multiple => true,
|
|
|
|
|
:onchange => 'addInputFiles(this);',
|
|
|
|
|
:style => 'display:none',
|
|
|
|
|
:style => ie8? ? '': 'display:none',
|
|
|
|
|
:data => {
|
|
|
|
|
:max_file_size => Setting.attachment_max_size.to_i.kilobytes,
|
|
|
|
|
:max_file_size_message => l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)),
|
|
|
|
|