X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftemplates%2Fjot-header.tpl;h=a67f9c3f0c35ef0bdea97a1f6061c5c3cf4b3210;hb=a68c790c645f41e2c6a579d4d4485f864a1d06cd;hp=700d12ace10f3a20cfd02d894e69f83fe3cfb7c8;hpb=473adaf46357cbdd7fc7f8d3061a59800e985dd2;p=friendica.git diff --git a/view/templates/jot-header.tpl b/view/templates/jot-header.tpl index 700d12ace1..a67f9c3f0c 100644 --- a/view/templates/jot-header.tpl +++ b/view/templates/jot-header.tpl @@ -24,6 +24,11 @@ function initEditor(callback) { $("a#jot-perms-icon").colorbox(colorbox_options); $(".jothidden").show(); + $("#profile-jot-text").keyup(function(){ + var textlen = $(this).val().length; + $('#character-counter').text(textlen); + }); + editor = true; } if (typeof callback != "undefined") { @@ -136,7 +141,7 @@ function enableOnUser(){ if ($('#jot-popup').length != 0) $('#jot-popup').show(); $('#like-rotator-' + id).show(); - $.get('share/' + id, function(data) { + $.get('post/' + id + '/share', function(data) { if (!editor) $("#profile-jot-text").val(""); initEditor(function(){ addeditortext(data); @@ -179,7 +184,7 @@ function enableOnUser(){ commentBusy = true; $('body').css('cursor', 'wait'); - $.get('tagger/' + id + '?term=' + reply); + $.post('post/' + id + '/tag/add', {term: reply}); if(timer) clearTimeout(timer); timer = setTimeout(NavUpdate,3000); liking = 1;