2 * AUTOMATICALLY GENERATED TEMPLATE
3 * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
6 <link rel='stylesheet' type='text/css' href='{{$baseurl}}/library/fullcalendar/fullcalendar.css' />
7 <script language="javascript" type="text/javascript"
8 src="{{$baseurl}}/library/fullcalendar/fullcalendar.min.js"></script>
11 function showEvent(eventid) {
13 '{{$baseurl}}/events/?id='+eventid,
15 $.colorbox({html:data});
20 $(document).ready(function() {
21 $('#events-calendar').fullCalendar({
22 events: '{{$baseurl}}/events/json/',
24 left: 'prev,next today',
26 right: 'month,agendaWeek,agendaDay'
29 eventClick: function(calEvent, jsEvent, view) {
30 showEvent(calEvent.id);
33 eventRender: function(event, element, view) {
34 //console.log(view.name);
35 if (event.item['author-name']==null) return;
38 element.find(".fc-event-title").html(
39 "<img src='{0}' style='height:10px;width:10px'>{1} : {2}".format(
40 event.item['author-avatar'],
41 event.item['author-name'],
46 element.find(".fc-event-title").html(
47 "<img src='{0}' style='height:12px; width:12px'>{1}<p>{2}</p><p>{3}</p>".format(
48 event.item['author-avatar'],
49 event.item['author-name'],
55 element.find(".fc-event-title").html(
56 "<img src='{0}' style='height:24px;width:24px'>{1}<p>{2}</p><p>{3}</p>".format(
57 event.item['author-avatar'],
58 event.item['author-name'],
69 var args=location.href.replace(baseurl,"").split("/");
71 $("#events-calendar").fullCalendar('gotoDate',args[2] , args[3]-1);
75 var hash = location.hash.split("-")
76 if (hash.length==2 && hash[0]=="#link") showEvent(hash[1]);
82 <script language="javascript" type="text/javascript"
83 src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
84 <script language="javascript" type="text/javascript">
90 plugins : "bbcode,paste",
91 theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
92 theme_advanced_buttons2 : "",
93 theme_advanced_buttons3 : "",
94 theme_advanced_toolbar_location : "top",
95 theme_advanced_toolbar_align : "center",
96 theme_advanced_blockformats : "blockquote,code",
97 gecko_spellcheck : true,
98 paste_text_sticky : true,
99 entity_encoding : "raw",
100 add_unload_trigger : false,
101 remove_linebreaks : false,
102 //force_p_newlines : false,
103 //force_br_newlines : true,
104 forced_root_block : 'div',
105 content_css: "{{$baseurl}}/view/custom_tinymce.css",
106 theme_advanced_path : false,
107 setup : function(ed) {
108 ed.onInit.add(function(ed) {
109 ed.pasteAsPlainText = true;
116 $(document).ready(function() {
118 $('#event-share-checkbox').change(function() {
120 if ($('#event-share-checkbox').is(':checked')) {
121 $('#acl-wrapper').show();
124 $('#acl-wrapper').hide();
126 }).trigger('change');
129 $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
131 $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
132 selstr = $(this).text();
133 $('#jot-public').hide();
136 $('#jot-public').show();
139 }).trigger('change');