]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Update to notice form character count warning
authorsarven <csarven@plantard.controlezvous.ca>
Fri, 16 Jan 2009 18:14:20 +0000 (18:14 +0000)
committersarven <csarven@plantard.controlezvous.ca>
Fri, 16 Jan 2009 18:14:20 +0000 (18:14 +0000)
js/util.js
theme/identica/css/display.css

index c43af23337a532a12fee435e4b456391ba37d983..35d69310bf6919f296eddad95a69b9563b0971da 100644 (file)
@@ -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");
                }
        }
 
index 1eba97a4596c4523d227c11a82eadc10bdc28e02..c2eb4ef6554183f4db4b3e951af776d726847933 100644 (file)
@@ -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 {