diff --git a/app/views/files/_course_new.html.erb b/app/views/files/_course_new.html.erb index 960b2d399..88c33d865 100644 --- a/app/views/files/_course_new.html.erb +++ b/app/views/files/_course_new.html.erb @@ -1,6 +1,7 @@

<%=l(:label_attachment_new)%>

<% attachmenttypes = course.attachmenttypes %> <%= error_messages_for 'attachment' %> + <%= form_tag(course_files_path(course), :multipart => true,:remote => true,:method => :post,:name=>"upload_form", :class => "tabular") do %>

diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index c20617ce5..1a1d11363 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -69,6 +69,10 @@ function ajaxUpload(file, attachmentId, fileSpan, inputEl) { }) .fail(function(result) { progressSpan.text(result.statusText); + if($("#network_issue")) + { + $("#network_issue").show(); + } }).always(function() { ajaxUpload.uploading--; fileSpan.removeClass('ajax-loading');