取消掉贴吧字符长度的限制

This commit is contained in:
lizanle 2015-10-13 17:03:40 +08:00
parent 2d60555041
commit a227e37598
2 changed files with 8 additions and 8 deletions

View File

@ -76,10 +76,10 @@
$("#error").html("主题 过长(最长为 50 个字符)").show(); $("#error").html("主题 过长(最长为 50 个字符)").show();
return false; return false;
} }
if(memo_content.html().trim().length > 5000){ // if(memo_content.html().trim().length > 5000){
$("#error").html("内容 过长(最长为 5000 个字符)").show(); // $("#error").html("内容 过长(最长为 5000 个字符)").show();
return false; // return false;
} // }
return true; return true;
} }

View File

@ -7,10 +7,10 @@
$("#error").html('主题不能超过50个字符').show(); $("#error").html('主题不能超过50个字符').show();
return; return;
} }
if(memo_content.html().trim().length > 5000 ){ // if(memo_content.html().trim().length > 5000 ){
$("#error").html('内容不能超过5000个字符').show(); // $("#error").html('内容不能超过5000个字符').show();
return; // return;
} // }
memo_content.sync(); memo_content.sync();
$("#edit_memo").submit(); $("#edit_memo").submit();
}else if($("textarea[name='memo[subject]']").val().trim() == "" && memo_content.html().trim() != "" ){ }else if($("textarea[name='memo[subject]']").val().trim() == "" && memo_content.html().trim() != "" ){