aboutsummaryrefslogtreecommitdiff
path: root/radicale_infcloud/web/interface.js
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-08-11 10:51:14 -0400
committerB. Stack <bgstack15@gmail.com>2022-08-11 10:51:14 -0400
commitfd362c6b8acc3e37a18da075fde655df7cd87ebb (patch)
treea8e98c68a8b1f497824a85486975c4fb38ce25af /radicale_infcloud/web/interface.js
parentWIP: uploaded event is visible but not clickable (diff)
downloadradicaleinfcloud-fd362c6b8acc3e37a18da075fde655df7cd87ebb.tar.gz
radicaleinfcloud-fd362c6b8acc3e37a18da075fde655df7cd87ebb.tar.bz2
radicaleinfcloud-fd362c6b8acc3e37a18da075fde655df7cd87ebb.zip
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!
Diffstat (limited to 'radicale_infcloud/web/interface.js')
-rw-r--r--radicale_infcloud/web/interface.js9
1 files changed, 5 insertions, 4 deletions
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 */
bgstack15