Commit 59f47d78 by doszhang

dos

parent 516697e1
...@@ -620,6 +620,9 @@ function checkIt(bind, maxNum) { ...@@ -620,6 +620,9 @@ function checkIt(bind, maxNum) {
{ {
len += 2; len += 2;
} }
}
if (len >= maxNum) { if (len >= maxNum) {
if (i != v.length - 1) { if (i != v.length - 1) {
$("#" + bind).val(v.substr(0, maxNum)) $("#" + bind).val(v.substr(0, maxNum))
...@@ -627,6 +630,4 @@ function checkIt(bind, maxNum) { ...@@ -627,6 +630,4 @@ function checkIt(bind, maxNum) {
} }
} }
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment