]> git.mxchange.org Git - friendica.git/blobdiff - view/jot-header.tpl
allow tag input to contain leading '#'
[friendica.git] / view / jot-header.tpl
index 22bd0aa5b22650bfcd76be3108bc4c4bda044a12..ecf27e1b179647b0643371c88d4726f6799b6536 100644 (file)
@@ -214,6 +214,19 @@ 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();
+                               });
+                       }
+               }
+       }
+
        function jotClearLocation() {
                $('#jot-coord').val('');
                $('#profile-nolocation-wrapper').hide();