]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/jot-header.tpl
Create new Post/Share module class
[friendica.git] / view / templates / jot-header.tpl
index 700d12ace10f3a20cfd02d894e69f83fe3cfb7c8..a67f9c3f0c35ef0bdea97a1f6061c5c3cf4b3210 100644 (file)
@@ -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;