1
0
Fork 0

adhere feedback

This commit is contained in:
Philipp Holzer 2022-11-07 20:21:11 +01:00
commit 78a8ed6fe7
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
10 changed files with 76 additions and 87 deletions

View file

@ -1,7 +1,7 @@
<script>
function showEvent(eventid) {
$.get(
'{{$event_api}}/'+eventid,
'{{$event_api}}/' + eventid,
function(data){
$.colorbox({html:data});
}
@ -10,7 +10,7 @@
function doEventPreview() {
$('#event-edit-preview').val(1);
$.post('calendar',$('#event-edit-form').serialize(), function(data) {
$.post('calendar', $('#event-edit-form').serialize(), function(data) {
$.colorbox({ html: data });
});
$('#event-edit-preview').val(0);
@ -93,7 +93,7 @@
},
loading: function(isLoading, view) {
if(!isLoading) {
$('td.fc-day').dblclick(function() { window.location.href='/calendar/event/new?start='+$(this).data('date'); });
$('td.fc-day').dblclick(function() { window.location.href='calendar/event/new?start=' + $(this).data('date'); });
}
},

View file

@ -3,7 +3,7 @@
<h3>{{$etitle}}</h3>
<ul class="sidebar-calendar-export-ul">
<li role="menuitem" class="sidebar-calendar-export-li"><a href="{{$baseurl}}/calendar/export/{{$user}}/ical">{{$export_ical}}</a></li>
<li role="menuitem" class="sidebar-calendar-export-li"><a href="{{$baseurl}}/calendar/export/{{$user}}/csv">{{$export_csv}}</a></li>
<li role="menuitem" class="sidebar-calendar-export-li"><a href="calendar/export/{{$user}}/ical">{{$export_ical}}</a></li>
<li role="menuitem" class="sidebar-calendar-export-li"><a href="calendar/export/{{$user}}/csv">{{$export_csv}}</a></li>
</ul>
</div>

View file

@ -35,7 +35,7 @@ $(document).ready(function () {
loading: function (isLoading, view) {
if (!isLoading) {
$("td.fc-day").dblclick(function () {
addToModal("/calendar/event/new?start=" + $(this).data("date"));
addToModal("calendar/event/new?start=" + $(this).data("date"));
});
}
},

View file

@ -22,7 +22,7 @@
year: yesterday.getFullYear(),
month: yesterday.getMonth(),
date: yesterday.getDate(),
events: '{{$baseurl}}/calendar/api/get',
events: 'calendar/api/get',
header: false,
timeFormat: 'H(:mm)',
defaultView: 'basicWeek',

View file

@ -7,7 +7,7 @@
<script>
function showEvent(eventid) {
$.get(
'{{$event_api}}/'+eventid,
'{{$event_api}}/'+ eventid,
function(data){
$.colorbox({html:data});
}
@ -99,7 +99,7 @@
},
loading: function(isLoading, view) {
if(!isLoading) {
$('td.fc-day').dblclick(function() { window.location.href='/calendar/event/new?start='+$(this).data('date'); });
$('td.fc-day').dblclick(function() { window.location.href='/calendar/event/new?start=' + $(this).data('date'); });
}
},