##// END OF EJS Templates
revert r13183 (#17151)...
Toshi MARUYAMA -
r12911:a8389c4019e7
parent child
Show More
@@ -15,6 +15,7
15 15 :id => nil,
16 16 :class => 'file_selector',
17 17 :multiple => true,
18 :onchange => 'addInputFiles(this);',
18 19 :data => {
19 20 :max_file_size => Setting.attachment_max_size.to_i.kilobytes,
20 21 :max_file_size_message => l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)),
@@ -24,9 +25,6
24 25 } %>
25 26 (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
26 27 </span>
27 <%= javascript_tag do %>
28 $('input.file_selector').on('change', function(){addInputFiles(this);});
29 <% end %>
30 28
31 29 <% content_for :header_tags do %>
32 30 <%= javascript_include_tag 'attachments' %>
@@ -131,7 +131,7 function addInputFiles(inputEl) {
131 131 }
132 132 }
133 133
134 clearedFileInput.insertAfter('#attachments_fields').on('change', function(){addInputFiles(this);});
134 clearedFileInput.insertAfter('#attachments_fields');
135 135 }
136 136
137 137 function uploadAndAttachFiles(files, inputEl) {
General Comments 0
You need to be logged in to leave comments. Login now