From fd362c6b8acc3e37a18da075fde655df7cd87ebb Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Thu, 11 Aug 2022 10:51:14 -0400 Subject: WIP: newEvent has full UID now But the globalEventList.events[rid] still does not have this entry. Somehow I still need to add the new event to that! --- radicale_infcloud/web/interface.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'radicale_infcloud/web/interface.js') diff --git a/radicale_infcloud/web/interface.js b/radicale_infcloud/web/interface.js index da298a6..7f9b06f 100644 --- a/radicale_infcloud/web/interface.js +++ b/radicale_infcloud/web/interface.js @@ -1327,10 +1327,11 @@ function uploadFile(fileContents) //refetchCalendarEvents(); //rerenderCalendar(true); //dataToVcalendar('EDIT',origUID, inputUID, $('#etag').val(), '', isFormHidden, deleteMode); - putVcalendarToCollection(coll.accountUID, inputUID, "", fileContents, "", 'vevent', false, false, ""); - // If this newUID were instead the etag (which is internal to putVcalendarToCollection), the new event would be - // immediately clickable! - newEvent.id = inputUID + newUID + ".ics"; + // When returnFullUID is true (last parameter), it returns "http://username@server/radicale/username/CALID/hex.ics" + // But unfortunately the globalEventList.events[rid] still does not populate with this. + //newEvent.id = inputUID + newUID + ".ics"; + newEvent.id = putVcalendarToCollection(coll.accountUID, inputUID, "", fileContents, "", 'vevent', false, false, "", true); + console.log("FINDTHIS"); return newEvent; } /* STOP stackrpms */ -- cgit