论坛发帖 的bug
This commit is contained in:
parent
43d9c5636a
commit
04ba73fb7a
|
@ -58,15 +58,15 @@
|
||||||
if(!check_memo_name()){
|
if(!check_memo_name()){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($("textarea[name='memo[subject]']").val().trim() != "" && memo_content.html().trim() != "" ){
|
if($("textarea[name='memo[subject]']").val().trim() != "" && !memo_content.isEmpty() ){
|
||||||
memo_content.sync();
|
memo_content.sync();
|
||||||
$("#new_memo").submit();
|
$("#new_memo").submit();
|
||||||
}else if($("textarea[name='memo[subject]']").val().trim() == "" && memo_content.html().trim() == ""){
|
}else if($("textarea[name='memo[subject]']").val().trim() == "" && memo_content.isEmpty()){
|
||||||
$("#error").html("主题和内容不能为空").show();
|
$("#error").html("主题和内容不能为空").show();
|
||||||
}
|
}
|
||||||
else if($("textarea[name='memo[subject]']").val().trim() == "" && memo_content.html().trim() != "" ){
|
else if($("textarea[name='memo[subject]']").val().trim() == "" && !memo_content.isEmpty() ){
|
||||||
$("#error").html("主题不能为空").show();
|
$("#error").html("主题不能为空").show();
|
||||||
}else if($("textarea[name='memo[subject]']").val().trim() != "" && memo_content.html().val().trim() == ""){
|
}else if($("textarea[name='memo[subject]']").val().trim() != "" && memo_content.isEmpty()){
|
||||||
$("#error").html("内容不能为空").show();
|
$("#error").html("内容不能为空").show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue