summaryrefslogtreecommitdiff
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
parent05b69a290ddddf91a407fe4603361b53bff009e3 (diff)
Update to notice form character count warning
-rw-r--r--js/util.js6
-rw-r--r--theme/identica/css/display.css10
2 files changed, 8 insertions, 8 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");
}
}
diff --git a/theme/identica/css/display.css b/theme/identica/css/display.css
index 1eba97a45..c2eb4ef65 100644
--- a/theme/identica/css/display.css
+++ b/theme/identica/css/display.css
@@ -41,12 +41,12 @@ color:#88171A;
#notice_text-count {
color:#333;
}
-#notice_text-count.warning {
-color:#FDFF00;
-background-color:#000;
+#form_notice.warning #notice_text-count {
+color:#000;
+background-color:#A9BF4F;
}
-#notice_data-text.warning {
-border-color:#FDFF00;
+#form_notice.warning #notice_data-text {
+border-color:#A9BF4F;
}
#form_notice #notice_data-attach_view {