From: Sarven Capadisli Date: Thu, 10 Dec 2009 13:52:05 +0000 (+0100) Subject: If ElementData is set on the notice form, use the existing MaxLength X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c0aad854f7f17cf817f488e0f2ee57303ff75305;p=quix0rs-gnu-social.git If ElementData is set on the notice form, use the existing MaxLength --- diff --git a/js/util.js b/js/util.js index 66d66c1547..71514324b1 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();