X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fde%2Fjot-header.tpl;h=62fbe84e481fc6c79bd6e12d43c3422e3530c7ee;hb=5f9f03daf781b95b5685a19d450800aad879c0de;hp=508715dca62b0ac492bdec0eebe29e2bb076e59b;hpb=60c5e76b2db83038b987b2c54aa21bb9818d2fa1;p=friendica.git diff --git a/view/de/jot-header.tpl b/view/de/jot-header.tpl index 508715dca6..62fbe84e48 100644 --- a/view/de/jot-header.tpl +++ b/view/de/jot-header.tpl @@ -2,17 +2,20 @@ @@ -67,10 +75,12 @@ 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'); @@ -94,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) { @@ -101,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");