]> git.mxchange.org Git - friendica.git/blobdiff - view/jot-header.tpl
"show more" -> move closer to text
[friendica.git] / view / jot-header.tpl
index 9ded3e9b43061f57dc7000724c71bd3aa65f503b..ecfed6c423b23eb179cd45a4b0cc96c529e3bc93 100644 (file)
@@ -222,8 +222,9 @@ function initEditor(cb){
                event.target.textContent = reply;
                event.preventDefault();
                if(reply && reply.length) {
+                       reply = bin2hex(reply);
                        $('#profile-rotator').show();
-                       $.get('parse_url?url=' + reply, function(data) {
+                       $.get('parse_url?binurl=' + reply, function(data) {
                                if (!editor) $("#profile-jot-text").val("");
                                initEditor(function(){
                                        tinyMCE.execCommand('mceInsertRawHTML',false,data);
@@ -234,14 +235,18 @@ function initEditor(cb){
        }
 
        function itemTag(id) {
-               $('#like-rotator-' + id).show();
                reply = prompt("$term");
                if(reply && reply.length) {
                        reply = reply.replace('#','');
                        if(reply.length) {
-                               $.get('tagger/' + id + '?term=' + reply, function(data) {
-                                       $('#like-rotator-' + id).hide();
-                               });
+
+                               commentBusy = true;
+                               $('body').css('cursor', 'wait');
+
+                               $.get('tagger/' + id + '?term=' + reply);
+                               if(timer) clearTimeout(timer);
+                               timer = setTimeout(NavUpdate,3000);
+                               liking = 1;
                        }
                }
        }