|
|
@ -147,6 +147,7 @@
|
|
|
|
if (!title || title.length == 0) {
|
|
|
|
if (!title || title.length == 0) {
|
|
|
|
$("#title_notice").removeClass("none");
|
|
|
|
$("#title_notice").removeClass("none");
|
|
|
|
$("#title_notice").html("请输入标题");
|
|
|
|
$("#title_notice").html("请输入标题");
|
|
|
|
|
|
|
|
$(document).scrollTop(parseInt($("#title_notice").offset().top)-150);
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$("#title_notice").addClass("none");
|
|
|
|
$("#title_notice").addClass("none");
|
|
|
@ -163,6 +164,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
if (!content || content.length == 0) {
|
|
|
|
if (!content || content.length == 0) {
|
|
|
|
$("#des_notice").removeClass("none");
|
|
|
|
$("#des_notice").removeClass("none");
|
|
|
|
|
|
|
|
$(document).scrollTop(parseInt($("#des_notice").offset().top)-150);
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$("#des_notice").addClass("none");
|
|
|
|
$("#des_notice").addClass("none");
|
|
|
@ -171,6 +173,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
if (!author_name || author_name.length == 0) {
|
|
|
|
if (!author_name || author_name.length == 0) {
|
|
|
|
$("#author_name_notice").removeClass("none");
|
|
|
|
$("#author_name_notice").removeClass("none");
|
|
|
|
|
|
|
|
$(document).scrollTop(parseInt($("#author_name_notice").offset().top)-150);
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$("#author_name_notice").addClass("none");
|
|
|
|
$("#author_name_notice").addClass("none");
|
|
|
@ -178,6 +181,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
if (!author_name || author_name.length >10) {
|
|
|
|
if (!author_name || author_name.length >10) {
|
|
|
|
$("#title_author_name").removeClass("none");
|
|
|
|
$("#title_author_name").removeClass("none");
|
|
|
|
|
|
|
|
$(document).scrollTop(parseInt($("#title_author_name").offset().top)-150);
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$("#title_author_name").addClass("none");
|
|
|
|
$("#title_author_name").addClass("none");
|
|
|
@ -186,6 +190,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
if (!author_school_name || author_school_name.length == 0) {
|
|
|
|
if (!author_school_name || author_school_name.length == 0) {
|
|
|
|
$("#author_school_name_notice").removeClass("none");
|
|
|
|
$("#author_school_name_notice").removeClass("none");
|
|
|
|
|
|
|
|
$(document).scrollTop(parseInt($("#author_school_name_notice").offset().top)-150);
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$("#author_school_name_notice").addClass("none");
|
|
|
|
$("#author_school_name_notice").addClass("none");
|
|
|
@ -201,6 +206,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
if($('.attachments_fields .attachment').length == 0){
|
|
|
|
if($('.attachments_fields .attachment').length == 0){
|
|
|
|
$("#file_notice").removeClass("none");
|
|
|
|
$("#file_notice").removeClass("none");
|
|
|
|
|
|
|
|
$(document).scrollTop(parseInt($("#file_notice").offset().top)-150);
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$("#file_notice").addClass("none");
|
|
|
|
$("#file_notice").addClass("none");
|
|
|
|