From 6e0c916246e7f821ee3f31fe30b5133174360c6f Mon Sep 17 00:00:00 2001 From: gonglexin <18008490802@163.com> Date: Mon, 20 Oct 2014 22:50:49 +0800 Subject: [PATCH] =?UTF-8?q?#1026=20=E4=B8=8A=E4=BC=A0=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E7=BD=91=E7=BB=9C=E9=97=AE=E9=A2=98=E6=97=B6=E7=BB=99=E5=87=BA?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/files/_course_new.html.erb | 1 + public/javascripts/attachments.js | 4 ++++ 2 files changed, 5 insertions(+) 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 @@
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');