Skip to content

Commit

Permalink
Display a message why file is uploading.
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Youch committed May 5, 2010
1 parent cb8f436 commit 3caf91b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/views/inline_file_upload/_form.html.erb
Expand Up @@ -15,12 +15,18 @@ form_options[:html][:multipart] = true
</head>
<body>

<div id="upload_form">
<% cms_unstyled_form_for :file, file, form_options do |f| -%>
<%= hidden_field_tag :upload, 1 %>
<%= f.hidden_field :object %>
<%= f.hidden_field :field %>
<%= f.file_field :file_id, :onchange => 'this.form.submit();' %>
<%= f.file_field :file_id, :onchange => '$("upload_form").hide(); $("uploading").show(); this.form.submit();' %>
<% end -%>
</div>

<div id="uploading" style="display:none;">
Please wait file is uploading...
</div>

</body>
</html>

0 comments on commit 3caf91b

Please sign in to comment.