]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/testbubble/jot-header.tpl
Merge pull request #21 from fabrixxm/fixinstall
[friendica.git] / view / theme / testbubble / jot-header.tpl
index 5ada1fdf88aac121e7806624effc4b2b993b56d7..62351e17321e17026c610b74e0cfaeaaa60f63ff 100644 (file)
@@ -83,18 +83,20 @@ function initEditor(cb) {
                         });
                         ed.onInit.add(function(ed) {
                                 ed.pasteAsPlainText = true;
-                                $("#profile-jot-text-loading").hide();
-                                $("#profile-jot-submit-wrapper").show();
-                                $("#profile-upload-wrapper").show();
-                                $("#profile-attach-wrapper").show();
-                                $("#profile-link-wrapper").show();
-                                $("#profile-video-wrapper").show();
-                                $("#profile-audio-wrapper").show();
-                                $("#profile-location-wrapper").show();
-                                $("#profile-nolocation-wrapper").show();
-                                $("#profile-title-wrapper").show();
-                                $("#profile-jot-plugin-wrapper").show();
-                                $("#character-counter").show();
+                                                               $("#profile-jot-text-loading").hide();
+                                   $("#profile-jot-submit-wrapper").show();
+                                                               {{ if $newpost }}
+                                   $("#profile-upload-wrapper").show();
+                                       $("#profile-attach-wrapper").show();
+                                   $("#profile-link-wrapper").show();
+                                       $("#profile-video-wrapper").show();
+                                   $("#profile-audio-wrapper").show();
+                                       $("#profile-location-wrapper").show();
+                                   $("#profile-nolocation-wrapper").show();
+                                       $("#profile-title-wrapper").show();
+                                       $("#profile-jot-plugin-wrapper").show();
+                                                               {{ endif }}   
+                             $("#character-counter").show();
                                 if (typeof cb!="undefined") cb();
                         });
                 }
@@ -254,6 +256,23 @@ function initEditor(cb) {
                }
        }
 
+       function itemTag(id) {
+               reply = prompt("$term");
+               if(reply && reply.length) {
+                       reply = reply.replace('#','');
+                       if(reply.length) {
+
+                               commentBusy = true;
+                               $('body').css('cursor', 'wait');
+
+                               $.get('tagger/' + id + '?term=' + reply);
+                               if(timer) clearTimeout(timer);
+                               timer = setTimeout(NavUpdate,3000);
+                               liking = 1;
+                       }
+               }
+       }
+
        function jotClearLocation() {
                $('#jot-coord').val('');
                $('#profile-nolocation-wrapper').hide();