]> git.mxchange.org Git - friendica.git/blobdiff - view/en/jot-header.tpl
resolve file inclusion conflicts w/ multiple plugins, improve the typo checker
[friendica.git] / view / en / jot-header.tpl
index 93eb440a4ee1f1ddab9e2cc1d1e4ba2ea8adb356..fe818410e5e3319e6c03af968f2dcd318ecd09b1 100644 (file)
@@ -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');