|
|
@ -76,7 +76,7 @@
|
|
|
|
<img src="<%= cover_url %>" width="120px" height="90px"/>
|
|
|
|
<img src="<%= cover_url %>" width="120px" height="90px"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p style="height:20px;line-height:20px;"><span class="color-red ml20 none" id="cover_file_notice">请上传封面</span></p>
|
|
|
|
<!-- <p style="height:20px;line-height:20px;"><span class="color-red ml20 none" id="cover_file_notice">请上传封面</span></p>-->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="padding30 bor-top-greyE">
|
|
|
|
<div class="padding30 bor-top-greyE">
|
|
|
@ -168,12 +168,13 @@
|
|
|
|
$("#author_school_name_notice").addClass("none");
|
|
|
|
$("#author_school_name_notice").addClass("none");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var coverId = $("input[name='library[cover_id]']").val();
|
|
|
|
var coverId = $("input[name='library[cover_id]']").val();
|
|
|
|
if ((!coverId || coverId.length == 0) && (!cover_file || cover_file.length == 0)) {
|
|
|
|
|
|
|
|
$("#cover_file_notice").removeClass("none");
|
|
|
|
// if ((!coverId || coverId.length == 0) && (!cover_file || cover_file.length == 0)) {
|
|
|
|
return
|
|
|
|
// $("#cover_file_notice").removeClass("none");
|
|
|
|
}else{
|
|
|
|
// return
|
|
|
|
$("#cover_file_notice").addClass("none");
|
|
|
|
// }else{
|
|
|
|
}
|
|
|
|
// $("#cover_file_notice").addClass("none");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
if($('.attachments_fields .attachment').length == 0){
|
|
|
|
if($('.attachments_fields .attachment').length == 0){
|
|
|
|
$("#file_notice").removeClass("none");
|
|
|
|
$("#file_notice").removeClass("none");
|
|
|
|