diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-08-26 08:15:11 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-08-26 08:15:11 +0000 |
commit | e3e14ce3a119f61f22a75c1fdea314e88e0a4d9b (patch) | |
tree | 5c0bb36b54991ed1698f8635838da9036f10f9ac /app/views/attachments | |
parent | 425761740a650f41f85c939a78bbcb4440bf3c49 (diff) | |
download | redmine-e3e14ce3a119f61f22a75c1fdea314e88e0a4d9b.tar.gz redmine-e3e14ce3a119f61f22a75c1fdea314e88e0a4d9b.zip |
revert r13199 (#17151)
Chrome 36.0.1985.143 was released.
git-svn-id: http://svn.redmine.org/redmine/trunk@13350 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments')
-rw-r--r-- | app/views/attachments/_form.html.erb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/views/attachments/_form.html.erb b/app/views/attachments/_form.html.erb index 26ff5c96a..65ad8804a 100644 --- a/app/views/attachments/_form.html.erb +++ b/app/views/attachments/_form.html.erb @@ -15,6 +15,7 @@ :id => nil, :class => 'file_selector', :multiple => true, + :onchange => 'addInputFiles(this);', :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)), @@ -24,9 +25,6 @@ } %> (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>) </span> -<%= javascript_tag do %> - $('input.file_selector').on('change', function(){addInputFiles(this);}); -<% end %> <% content_for :header_tags do %> <%= javascript_include_tag 'attachments' %> |