diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-08-06 22:40:59 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-08-06 22:40:59 -0400 |
commit | aba2fcb45141929d9fdb0ec5e91e3aef8c44d709 (patch) | |
tree | a0747d0929d1ec0929aba2c9a1a91e3c17a34936 | |
parent | f917485a0dc0d5905f9570b18fb59a4a1fbeb56c (diff) | |
parent | b2e9d23b843ab799e2601607f3a9580b1f82ac5d (diff) |
Merge commit 'holizz/0.8.x-fasterjs' into 0.8.x
-rw-r--r-- | js/util.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js index ef147bef4..1ab711cd1 100644 --- a/js/util.js +++ b/js/util.js @@ -23,7 +23,9 @@ $(document).ready(function(){ var currentLength = $("#notice_data-text").val().length; var remaining = maxLength - currentLength; var counter = $("#notice_text-count"); - counter.text(remaining); + if (counter.text() != String(remaining)) { + counter.text(remaining); + } if (remaining < 0) { $("#form_notice").addClass("warning"); |