|
|
@ -31,13 +31,13 @@
|
|
|
|
<span class="add_attachment" style="font-weight:normal;">
|
|
|
|
<span class="add_attachment" style="font-weight:normal;">
|
|
|
|
<%#= button_tag "浏览", :type=>"button", :onclick=>"CompatibleSend();" %>
|
|
|
|
<%#= button_tag "浏览", :type=>"button", :onclick=>"CompatibleSend();" %>
|
|
|
|
<!--%= link_to image_tag(),"javascript:void(0)", :onclick => "_file.click()"%-->
|
|
|
|
<!--%= link_to image_tag(),"javascript:void(0)", :onclick => "_file.click()"%-->
|
|
|
|
<%= button_tag "浏览", :type=>"button", :onclick=>"_file.click()",:onmouseover => 'this.focus()' %>
|
|
|
|
<%= button_tag "浏览", :type=>"button", :onclick=>"_file.click()",:onmouseover => 'this.focus()', :style => ie8? ? 'display:none' : '' %>
|
|
|
|
<%= file_field_tag 'attachments[dummy][file]',
|
|
|
|
<%= file_field_tag 'attachments[dummy][file]',
|
|
|
|
:id => '_file',
|
|
|
|
:id => '_file',
|
|
|
|
:class => 'file_selector',
|
|
|
|
:class => 'file_selector',
|
|
|
|
:multiple => true,
|
|
|
|
:multiple => true,
|
|
|
|
:onchange => 'addInputFiles(this);',
|
|
|
|
:onchange => 'addInputFiles(this);',
|
|
|
|
:style => 'display:none',
|
|
|
|
:style => ie8? ? '' : 'display:none',
|
|
|
|
:data => {
|
|
|
|
:data => {
|
|
|
|
:max_file_size => Setting.attachment_max_size.to_i.kilobytes,
|
|
|
|
: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)),
|
|
|
|
:max_file_size_message => l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)),
|
|
|
|