Merge commit 'holizz/0.8.x-fasterjs' into 0.8.x

This commit is contained in:
Craig Andrews 2009-08-06 22:40:59 -04:00
commit aba2fcb451

View File

@ -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");