aboutsummaryrefslogtreecommitdiff
path: root/static/server_connect.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-23 01:39:08 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-23 01:39:08 +0200
commit327b322b9583f760cd02ddad7a2a8890df26cc8b (patch)
treed0a73d5df0011233f3eaa5d9a54d1317fad50bbc /static/server_connect.ts
parentMinor cleanup in recurrence generate. (diff)
downloadcalp-uid-stuff-2.tar.gz
calp-uid-stuff-2.tar.xz
Diffstat (limited to 'static/server_connect.ts')
-rw-r--r--static/server_connect.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/static/server_connect.ts b/static/server_connect.ts
index d1a544eb..d2617bf9 100644
--- a/static/server_connect.ts
+++ b/static/server_connect.ts
@@ -55,7 +55,7 @@ async function remove_event(uid: uid) {
// ];
// }
-async function create_event(event: VEvent) {
+async function create_event(submit_type: string, event: VEvent) {
// let xml = event.getElementsByTagName("icalendar")[0].outerHTML
let calendar = event.calendar;
@@ -67,6 +67,9 @@ async function create_event(event: VEvent) {
console.log('calendar=', calendar/*, xml*/);
let data = new URLSearchParams();
+
+ data.append('submit_type', submit_type);
+
data.append("cal", calendar);
// data.append("data", xml);