X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjot-header.tpl;h=81c513484ac0f718b9675f6476a78d256983f37c;hb=29b9d1887176ca2f477f1301f6aac463375c2a5f;hp=e2b196dc3e7ac2427912edbc7bd2d732e404036e;hpb=edff5b5289f80be89e4fc6b072ccd84812960349;p=friendica.git diff --git a/view/jot-header.tpl b/view/jot-header.tpl index e2b196dc3e..81c513484a 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -7,13 +7,12 @@ tinyMCE.init({ mode : "specific_textareas", editor_selector: /(profile-jot-text|prvmail-text)/, plugins : "bbcode", - theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor", + theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "center", - theme_advanced_styles : "Code=codeStyle;Quote=quoteStyle", - content_css : "bbcode.css", + theme_advanced_blockformats : "blockquote,code", entity_encoding : "raw", add_unload_trigger : false, remove_linebreaks : false, @@ -60,6 +59,17 @@ tinyMCE.init({ } } ); + $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() { + var selstr; + $('#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'); + + }); + if(selstr == null) + $('#profile-jot-perms img').attr('src', 'images/unlock_icon.gif'); + + }).trigger('change'); }); @@ -74,6 +84,21 @@ tinyMCE.init({ } } + function jotGetVideo() { + reply = prompt("Please enter a YouTube link:"); + if(reply && reply.length) { + tinyMCE.execCommand('mceInsertRawHTML',false,'[youtube]' + reply + '[/youtube]'); + } + } + + function jotGetLocation() { + reply = prompt("Where are you right now?", $('#jot-location').val()); + if(reply && reply.length) { + $('#jot-location').val(reply); + } + } + + function linkdropper(event) { var linkFound = event.dataTransfer.types.contains("text/uri-list"); if(linkFound) @@ -93,5 +118,12 @@ tinyMCE.init({ } } + function jotClearLocation() { + $('#jot-coord').val(''); + $('#profile-nolocation-wrapper').hide(); + } + + $geotag +