]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/jot-header.tpl
Remove geotag
[friendica.git] / view / templates / jot-header.tpl
index ba186bc8257a39475f13738b39808418760e39f7..53d5c7288ed79c7191448b8bfa3e355e8218248d 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;
@@ -210,6 +215,7 @@ function enableOnUser(){
 //                                     if(timer) clearTimeout(timer);
 //                                     timer = setTimeout(NavUpdate,3000);
                                        liking = 1;
+                                       force_update = true;
                                        $.colorbox.close();
                                } else {
                                        $("#id_term").css("border-color","#FF0000");
@@ -230,7 +236,5 @@ function enableOnUser(){
                $("#profile-jot-text").val(currentText + data);
        }
 
-       {{$geotag nofilter}}
-
 </script>