X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fen%2Fjot-header.tpl;h=fe818410e5e3319e6c03af968f2dcd318ecd09b1;hb=5f2f64406407839d0a9d906e0ad165067d90d130;hp=93eb440a4ee1f1ddab9e2cc1d1e4ba2ea8adb356;hpb=fc20fb17c299100fd39e900f20c70d823baaebdf;p=friendica.git diff --git a/view/en/jot-header.tpl b/view/en/jot-header.tpl index 93eb440a4e..fe818410e5 100644 --- a/view/en/jot-header.tpl +++ b/view/en/jot-header.tpl @@ -9,7 +9,7 @@ tinyMCE.init({ mode : "specific_textareas", editor_selector: /(profile-jot-text|prvmail-text)/, plugins : "bbcode,paste", - theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect", + 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", @@ -75,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');