From 4313982e02a04425ec1c14eac52ddfa65cd309d8 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Fri, 17 Jun 2016 14:27:33 +0200 Subject: [PATCH] frio - event - code clean up + docu --- include/datetime.php | 3 +- view/theme/frio/js/theme.js | 157 ----------------------- view/theme/frio/templates/event_form.tpl | 13 ++ view/theme/frio/templates/events-js.tpl | 8 ++ 4 files changed, 22 insertions(+), 159 deletions(-) diff --git a/include/datetime.php b/include/datetime.php index 4b0bbb576..949f68dec 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -298,8 +298,7 @@ function datetimesel($format, $min, $max, $default, $label, $id = 'datetimepicke $o .= replace_macros($tpl,array( '$field' => array($id, $label, $input_text, '', (($required) ? '*' : ''), 'placeholder="' . $readable_format . '"'), )); -// $o .= "
{2}
{3}
".format( -// event.item['author-avatar'], -// event.item['author-name'], -// event.item.desc, -// event.item.location -// )); -// break; -// case "agendaDay": -// element.find(".fc-event-title").html( -// "{1}{2}
{3}
".format( -// event.item['author-avatar'], -// event.item['author-name'], -// event.item.desc, -// event.item.location -// )); -// break; -// } -// } -// -// }) -// -// // center on date -// var args=location.href.replace(baseurl,"").split("/"); -// if (args.length>=4) { -// $("#events-calendar").fullCalendar('gotoDate',args[2] , args[3]-1); -// } -// -// // echo the title -// var view = $('#events-calendar').fullCalendar('getView'); -// $('#fc-title').text(view.title); -// -// // show event popup -// var hash = location.hash.split("-") -// if (hash.length==2 && hash[0]=="#link") showEvent(hash[1]); -// -// }); - -// $(document).ready(function() { -// $('#events-calendar').fullCalendar({ -// -// events: '{{$baseurl}}/events/json/', -// header: { -// left: '', -// // center: 'title', -// right: '' -// }, -// timeFormat: 'H(:mm)', -// eventClick: function(calEvent, jsEvent, view) { -// showEvent(calEvent.id); -// }, -// loading: function(isLoading, view) { -// if(!isLoading) { -// $('td.fc-day').dblclick(function() { window.location.href='/events/new?start='+$(this).data('date'); }); -// } -// }, -// -// eventRender: function(event, element, view) { -// //console.log(view.name); -// if (event.item['author-name']==null) return; -// switch(view.name){ -// case "month": -// element.find(".fc-event-title").html( -// "{1} : {2}".format( -// event.item['author-avatar'], -// event.item['author-name'], -// event.title -// )); -// break; -// case "agendaWeek": -// element.find(".fc-event-title").html( -// "{1}{2}
{3}
".format( -// event.item['author-avatar'], -// event.item['author-name'], -// event.item.desc, -// event.item.location -// )); -// break; -// case "agendaDay": -// element.find(".fc-event-title").html( -// "{1}{2}
{3}
".format( -// event.item['author-avatar'], -// event.item['author-name'], -// event.item.desc, -// event.item.location -// )); -// break; -// } -// } -// -// }) -// -// // center on date -// var args=location.href.replace(baseurl,"").split("/"); -// if (args.length>=4) { -// $("#events-calendar").fullCalendar('gotoDate',args[2] , args[3]-1); -// } -// -// // echo the title -// var view = $('#events-calendar').fullCalendar('getView'); -// $('#fc-title').text(view.title); -// -// // show event popup -// var hash = location.hash.split("-") -// if (hash.length==2 && hash[0]=="#link") showEvent(hash[1]); -// -// }); - \ No newline at end of file diff --git a/view/theme/frio/templates/event_form.tpl b/view/theme/frio/templates/event_form.tpl index 6ccce703b..97892d186 100644 --- a/view/theme/frio/templates/event_form.tpl +++ b/view/theme/frio/templates/event_form.tpl @@ -24,32 +24,42 @@ + {{* The tab conten with the necessary basic settings *}}