]> git.mxchange.org Git - friendica.git/blobdiff - view/de/jot-header.tpl
simplify insecure network warning
[friendica.git] / view / de / jot-header.tpl
index 58403f1ba65739d9268eb5349adf3cd9a25f9e53..62fbe84e481fc6c79bd6e12d43c3422e3530c7ee 100644 (file)
@@ -104,6 +104,20 @@ tinyMCE.init({
                }
        }
 
+       function jotVideoURL() {
+               reply = prompt("Please enter a video(.ogg) link/URL:");
+               if(reply && reply.length) {
+                       tinyMCE.execCommand('mceInsertRawHTML',false,'[video]' + reply + '[/video]');
+               }
+       }
+
+       function jotAudioURL() {
+               reply = prompt("Please enter an audio(.ogg) link/URL:");
+               if(reply && reply.length) {
+                       tinyMCE.execCommand('mceInsertRawHTML',false,'[audio]' + reply + '[/audio]');
+               }
+       }
+
        function jotGetLocation() {
                reply = prompt("Wo bist du im Moment?", $('#jot-location').val());
                if(reply && reply.length) {
@@ -111,6 +125,16 @@ tinyMCE.init({
                }
        }
 
+       function jotShare(id) {
+               $('#like-rotator-' + id).show();
+               $.get('share/' + id, function(data) {
+                       tinyMCE.execCommand('mceInsertRawHTML',false,data);
+                       $('#like-rotator-' + id).hide();
+                       $(window).scrollTop(0);
+               });
+       }
+
+
 
        function linkdropper(event) {
                var linkFound = event.dataTransfer.types.contains("text/uri-list");