From 3618e36a14046e11dbff819eb7dae4916a8425e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Wed, 17 Jul 2019 18:37:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=AD=A6=E6=A1=88=E4=BE=8B=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/libraries/_form.html.erb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/views/libraries/_form.html.erb b/app/views/libraries/_form.html.erb index 6628a3ea..c67a8b57 100644 --- a/app/views/libraries/_form.html.erb +++ b/app/views/libraries/_form.html.erb @@ -76,7 +76,7 @@ -

请上传封面

+
@@ -168,12 +168,13 @@ $("#author_school_name_notice").addClass("none"); } var coverId = $("input[name='library[cover_id]']").val(); - if ((!coverId || coverId.length == 0) && (!cover_file || cover_file.length == 0)) { - $("#cover_file_notice").removeClass("none"); - return - }else{ - $("#cover_file_notice").addClass("none"); - } + + // if ((!coverId || coverId.length == 0) && (!cover_file || cover_file.length == 0)) { + // $("#cover_file_notice").removeClass("none"); + // return + // }else{ + // $("#cover_file_notice").addClass("none"); + // } if($('.attachments_fields .attachment').length == 0){ $("#file_notice").removeClass("none");