summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorsarven <csarven@plantard.controlezvous.ca>2009-01-16 18:14:20 +0000
committersarven <csarven@plantard.controlezvous.ca>2009-01-16 18:14:20 +0000
commite34efca7f326d794be5398abae8cbb7363bcfb9c (patch)
treed2c38058b0219225f7102ca6575524ae14e0a54f /js/util.js
parent05b69a290ddddf91a407fe4603361b53bff009e3 (diff)
Update to notice form character count warning
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js6
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");
}
}