mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
implement a public calendar for vistors of someones profile page
This commit is contained in:
parent
d0033ca5cf
commit
7495a34b32
10 changed files with 542 additions and 141 deletions
|
@ -156,7 +156,7 @@ $(document).ready(function() {
|
|||
|
||||
if(window.aclType == "event_head") {
|
||||
$('#events-calendar').fullCalendar({
|
||||
events: baseurl + '/events/json/',
|
||||
events: baseurl + window.eventModuleUrl +'/json/',
|
||||
header: {
|
||||
left: 'prev,next today',
|
||||
center: 'title',
|
||||
|
@ -204,9 +204,11 @@ $(document).ready(function() {
|
|||
|
||||
// center on date
|
||||
var args=location.href.replace(baseurl,"").split("/");
|
||||
if (args.length>=4) {
|
||||
if (args.length>=5 && window.eventModeParams == 2) {
|
||||
$("#events-calendar").fullCalendar('gotoDate',args[3] , args[4]-1);
|
||||
} else if (args.length>=4 && window.eventModeParams == 1) {
|
||||
$("#events-calendar").fullCalendar('gotoDate',args[2] , args[3]-1);
|
||||
}
|
||||
}
|
||||
|
||||
// show event popup
|
||||
var hash = location.hash.split("-")
|
||||
|
@ -264,7 +266,7 @@ function initCrop() {
|
|||
|
||||
function showEvent(eventid) {
|
||||
/* $.get(
|
||||
baseurl + '/events/?id='+eventid,
|
||||
baseurl + window.eventModuleUrl + '/?id=' + eventid,
|
||||
function(data){
|
||||
$.colorbox({html:data});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue