From 8403d5365c39a958a674f28a489ac0d88b63bc2b Mon Sep 17 00:00:00 2001 From: ouyangxuhua Date: Mon, 31 Aug 2015 17:49:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E6=96=B0?= =?UTF-8?q?=E9=97=BB=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/project.js | 7 +++++++ 1 file changed, 7 insertions(+) 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');