10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Add onbeforeunload

This commit is contained in:
Mickaël Véril 2020-01-09 13:11:20 +01:00
parent abc2d4cb33
commit 82c46054e7

View File

@ -270,6 +270,10 @@ draft: false
}
await reloadStat()
}
async function submitdat(){
window.onbeforeunload = () => {return '';}
await reloadContent();
}
</script>
{{< getDataFilesName >}}
<p>
@ -288,7 +292,7 @@ draft: false
<li>Now you can see the list of selected data and some statistics about these data</li>
</ol>
</p>
<form id="form_dat" action="javascript:reloadContent()" method="post">
<form id="form_dat" action="javascript:submitdat()" method="post">
<fieldset>
<legend>Data type</legend>
<input type="radio" id="abs" value="abs" name="datatype">