diff --git a/public/javascripts/project.js b/public/javascripts/project.js index c7a615ba3..a09484fd5 100644 --- a/public/javascripts/project.js +++ b/public/javascripts/project.js @@ -248,6 +248,13 @@ function regexDescription() { $("#description_notice_span").focus(); return false; } + else if (name.length > 10000) + { + $("#description_notice_span").text("描述超过10000个字符"); + $("#description_notice_span").css('color', '#ff0000'); + $("#description_notice_span").focus(); + return false; + } else { $("#description_notice_span").text("填写正确"); $("#description_notice_span").css('color', '#008000');