From c0aad854f7f17cf817f488e0f2ee57303ff75305 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Thu, 10 Dec 2009 14:52:05 +0100 Subject: If ElementData is set on the notice form, use the existing MaxLength --- js/util.js | 3 +++ 1 file changed, 3 insertions(+) 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(); -- cgit v1.2.3-54-g00ecf