]> git.mxchange.org Git - friendica.git/blobdiff - view/de/jot-header.tpl
simplify insecure network warning
[friendica.git] / view / de / jot-header.tpl
index b687f65a69d70ee8512df188185f33c3021e22fc..62fbe84e481fc6c79bd6e12d43c3422e3530c7ee 100644 (file)
@@ -2,17 +2,20 @@
 <script language="javascript" type="text/javascript" src="$baseurl/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
 <script language="javascript" type="text/javascript">
 
+var editor;
+
 tinyMCE.init({
        theme : "advanced",
        mode : "specific_textareas",
        editor_selector: /(profile-jot-text|prvmail-text)/,
-       plugins : "bbcode",
-       theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect",
+       plugins : "bbcode,paste",
+       theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
        theme_advanced_buttons2 : "",
        theme_advanced_buttons3 : "",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "center",
        theme_advanced_blockformats : "blockquote,code",
+       paste_text_sticky : true,
        entity_encoding : "raw",
        add_unload_trigger : false,
        remove_linebreaks : false,
@@ -43,8 +46,13 @@ tinyMCE.init({
                                $('#character-counter').addClass('red');
                        }
                        $('#character-counter').text(text);
-               });
-       }
+       });
+
+               ed.onInit.add(function(ed) {
+                       ed.pasteAsPlainText = true;
+               });
+
+       }
 });
 
 </script>
@@ -67,17 +75,19 @@ tinyMCE.init({
                        $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
                                selstr = $(this).text();
                                $('#profile-jot-perms img').attr('src', 'images/lock_icon.gif');
-
+                               $('.profile-jot-net input').attr('disabled', 'disabled');
                        });
-                       if(selstr == null)
+                       if(selstr == null) {
                                $('#profile-jot-perms img').attr('src', 'images/unlock_icon.gif');
+                               $('.profile-jot-net input').attr('disabled', false);
+                       }
 
                }).trigger('change');
 
        });
 
        function jotGetLink() {
-               reply = prompt("Please enter a link URL:");
+               reply = prompt("Bitte URL des Links angeben:");
                if(reply && reply.length) {
                        $('#profile-rotator').show();
                        $.get('parse_url?url=' + reply, function(data) {
@@ -88,19 +98,43 @@ tinyMCE.init({
        }
 
        function jotGetVideo() {
-               reply = prompt("Please enter a YouTube link:");
+               reply = prompt("Bitte den YouTube Link angeben:");
                if(reply && reply.length) {
                        tinyMCE.execCommand('mceInsertRawHTML',false,'[youtube]' + reply + '[/youtube]');
                }
        }
 
+       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("Where are you right now?", $('#jot-location').val());
+               reply = prompt("Wo bist du im Moment?", $('#jot-location').val());
                if(reply && reply.length) {
                        $('#jot-location').val(reply);
                }
        }
 
+       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");