diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/util.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/util.js b/js/util.js index c43af2333..35d69310b 100644 --- a/js/util.js +++ b/js/util.js @@ -22,13 +22,13 @@ $(document).ready(function(){ var maxLength = 140; var currentLength = $("#notice_data-text").val().length; var remaining = maxLength - currentLength; - var counter = $("#counter"); + var counter = $("#notice_text-count"); counter.text(remaining); if (remaining <= 0) { - $("#form_notice").addClass("response_error"); + $("#form_notice").addClass("warning"); } else { - $("#form_notice").removeClass("response_error"); + $("#form_notice").removeClass("warning"); } } |