]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/jot-header.tpl
Update translation fie after adding a string
[friendica.git] / view / templates / jot-header.tpl
index 8f9d59d9859153e9c4d8912484e3970954f59bbb..c6656d88666b07939c841abc27d2005f571edc2e 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") {
@@ -40,7 +45,7 @@ function enableOnUser(){
 }
 
 </script>
-<script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js?v={{$smarty.const.FRIENDICA_VERSION}}" ></script>
+<script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
 <script>
        var ispublic = '{{$ispublic nofilter}}';
 
@@ -103,7 +108,7 @@ function enableOnUser(){
                if(reply && reply.length) {
                        reply = bin2hex(reply);
                        $('#profile-rotator').show();
-                       $.get('parse_url?binurl=' + reply, function(data) {
+                       $.get('parseurl?binurl=' + reply, function(data) {
                                addeditortext(data);
                                $('#profile-rotator').hide();
                        });
@@ -160,7 +165,7 @@ function enableOnUser(){
                if(reply && reply.length) {
                        reply = bin2hex(reply);
                        $('#profile-rotator').show();
-                       $.get('parse_url?binurl=' + reply, function(data) {
+                       $.get('parseurl?binurl=' + reply, function(data) {
                                if (!editor) $("#profile-jot-text").val("");
                                initEditor(function(){
                                        addeditortext(data);
@@ -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");