summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/util.js b/js/util.js
index 59a489170..7eae496fd 100644
--- a/js/util.js
+++ b/js/util.js
@@ -4,12 +4,13 @@ $(document).ready(function(){
var maxLength = 140;
var currentLength = $("#status_textarea").val().length;
var remaining = 140 - currentLength;
- $("#counter").text(remaining);
+ var counter = $("#counter");
+ counter.text(remaining);
if(remaining <= 0) {
- $("#counter").attr("class", "toomuch");
+ counter.attr("class", "toomuch");
} else {
- $("#counter").attr("class", "");
+ counter.attr("class", "");
}
}