]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If ElementData is set on the notice form, use the existing MaxLength
authorSarven Capadisli <csarven@status.net>
Thu, 10 Dec 2009 13:52:05 +0000 (14:52 +0100)
committerSarven Capadisli <csarven@status.net>
Thu, 10 Dec 2009 13:52:05 +0000 (14:52 +0100)
js/util.js

index 66d66c15476fef7ad482a263b4a8b46858919323..71514324b1462f518fb5715ee5cc90d2696c0b44 100644 (file)
@@ -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();