X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Futil.js;h=f60b5d313750559dcd519625d0550d1028f70a84;hb=31b62bf7817366174fcfefba585f8fa462b1b024;hp=66d66c15476fef7ad482a263b4a8b46858919323;hpb=c855907f5943260a2b9740948a33f4170f3dda62;p=quix0rs-gnu-social.git diff --git a/js/util.js b/js/util.js index 66d66c1547..f60b5d3137 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(); @@ -312,8 +315,8 @@ var SN = { // StatusNet $('.form_disfavor').each(function() { SN.U.FormXHR($(this)); }); }, - NoticeForward: function() { - $('.form_forward').each(function() { SN.U.FormXHR($(this)); }); + NoticeRepeat: function() { + $('.form_repeat').each(function() { SN.U.FormXHR($(this)); }); }, NoticeAttachments: function() { @@ -449,7 +452,7 @@ var SN = { // StatusNet Notices: function() { if ($('body.user_in').length > 0) { SN.U.NoticeFavor(); - SN.U.NoticeForward(); + SN.U.NoticeRepeat(); SN.U.NoticeReply(); }