From 82c46054e7e011142ea7fe93c1f84617adfb8b2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?=
Date: Thu, 9 Jan 2020 13:11:20 +0100
Subject: [PATCH] Add onbeforeunload
---
content/multipledataset.html | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/content/multipledataset.html b/content/multipledataset.html
index eb96f92d..07ded6f9 100644
--- a/content/multipledataset.html
+++ b/content/multipledataset.html
@@ -270,6 +270,10 @@ draft: false
}
await reloadStat()
}
+ async function submitdat(){
+ window.onbeforeunload = () => {return '';}
+ await reloadContent();
+ }
{{< getDataFilesName >}}
@@ -288,7 +292,7 @@ draft: false
Now you can see the list of selected data and some statistics about these data
-