summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-12-10 14:52:05 +0100
committerSarven Capadisli <csarven@status.net>2009-12-10 14:52:05 +0100
commitc0aad854f7f17cf817f488e0f2ee57303ff75305 (patch)
tree10b0307fbee05fe70f0c4ffb7897e739e11faacc /js/util.js
parent61023d42d33f51b6ad24de23adbb1cefe7d8a32d (diff)
If ElementData is set on the notice form, use the existing MaxLength
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index 66d66c154..71514324b 100644
--- a/js/util.js
+++ b/js/util.js
@@ -77,6 +77,9 @@ var SN = { // StatusNet
SN.U.SubmitOnReturn(e, form);
});
}
+ else {
+ $('#'+form_id+' #'+SN.C.S.NoticeTextCount).text(jQuery.data(form[0], 'ElementData').MaxLength);
+ }
if ($('body')[0].id != 'conversation') {
$('#'+form_id+' textarea').focus();