]> git.mxchange.org Git - friendica.git/blob - view/event_head.tpl
never enough comments
[friendica.git] / view / event_head.tpl
1 <script language="javascript" type="text/javascript"
2           src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
3           <script language="javascript" type="text/javascript">
4
5
6 tinyMCE.init({
7         theme : "advanced",
8         mode : "textareas",
9         plugins : "bbcode,paste",
10         theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
11         theme_advanced_buttons2 : "",
12         theme_advanced_buttons3 : "",
13         theme_advanced_toolbar_location : "top",
14         theme_advanced_toolbar_align : "center",
15         theme_advanced_blockformats : "blockquote,code",
16         paste_text_sticky : true,
17         entity_encoding : "raw",
18         add_unload_trigger : false,
19         remove_linebreaks : false,
20         force_p_newlines : false,
21         force_br_newlines : true,
22         forced_root_block : '',
23         content_css: "$baseurl/view/custom_tinymce.css",
24         theme_advanced_path : false,
25         setup : function(ed) {
26                 ed.onInit.add(function(ed) {
27             ed.pasteAsPlainText = true;
28         });
29     }
30
31 });
32
33
34 $(document).ready(function() { 
35
36         $('#event-share-checkbox').change(function() {
37
38                 if ($('#event-share-checkbox').is(':checked')) { 
39                         $('#acl-wrapper').show();
40                 }
41                 else {
42                         $('#acl-wrapper').hide();
43                 }
44         }).trigger('change');
45
46
47         $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
48                 var selstr;
49                 $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
50                         selstr = $(this).text();
51                         $('#jot-public').hide();
52                 });
53                 if(selstr == null) {
54                         $('#jot-public').show();
55                 }
56
57         }).trigger('change');
58
59 });
60
61 </script>
62