|
|
|
@ -23,6 +23,7 @@
|
|
|
|
|
<%= f.text_field :author_name, placeholder: '请输入姓名', class: 'greyInput winput-300-35 mr20 fl winput150', width: '163', size: 30 %>
|
|
|
|
|
<p style="height:20px;line-height:20px;"><span class="color-red none" id="author_name_notice">请输入姓名</span></p>
|
|
|
|
|
</li>
|
|
|
|
|
<span class="color-red" id="title_author_name">字数不能超过10个字</span>
|
|
|
|
|
<li class="fl">
|
|
|
|
|
<%= f.text_field :author_school_name, placeholder: '请输入作者单位名称', class: 'greyInput winput-300-35 mr20 fl', width: '163', size: 30 %>
|
|
|
|
|
<p style="height:20px;line-height:20px;"><span class="color-red none" id="author_school_name_notice">请输入作者单位名称</span></p>
|
|
|
|
@ -151,13 +152,13 @@
|
|
|
|
|
$("#title_notice").addClass("none");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!title || title.length >10) {
|
|
|
|
|
$("#title_notice").removeClass("none");
|
|
|
|
|
$("#title_notice").html("字数不能超过10个字");
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
|
$("#title_notice").addClass("none");
|
|
|
|
|
}
|
|
|
|
|
// if (!title || title.length >10) {
|
|
|
|
|
// $("#title_notice").removeClass("none");
|
|
|
|
|
// $("#title_notice").html("字数不能超过10个字");
|
|
|
|
|
// return
|
|
|
|
|
// }else{
|
|
|
|
|
// $("#title_notice").addClass("none");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!content || content.length == 0) {
|
|
|
|
@ -166,12 +167,23 @@
|
|
|
|
|
}else{
|
|
|
|
|
$("#des_notice").addClass("none");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!author_name || author_name.length == 0) {
|
|
|
|
|
$("#author_name_notice").removeClass("none");
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
|
$("#author_name_notice").addClass("none");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!author_name || author_name.length >10) {
|
|
|
|
|
$("#title_author_name").removeClass("none");
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
|
$("#title_author_name").addClass("none");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!author_school_name || author_school_name.length == 0) {
|
|
|
|
|
$("#author_school_name_notice").removeClass("none");
|
|
|
|
|
return
|
|
|
|
|