10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 13:13:55 +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() await reloadStat()
} }
async function submitdat(){
window.onbeforeunload = () => {return '';}
await reloadContent();
}
</script> </script>
{{< getDataFilesName >}} {{< getDataFilesName >}}
<p> <p>
@ -288,7 +292,7 @@ draft: false
<li>Now you can see the list of selected data and some statistics about these data</li> <li>Now you can see the list of selected data and some statistics about these data</li>
</ol> </ol>
</p> </p>
<form id="form_dat" action="javascript:reloadContent()" method="post"> <form id="form_dat" action="javascript:submitdat()" method="post">
<fieldset> <fieldset>
<legend>Data type</legend> <legend>Data type</legend>
<input type="radio" id="abs" value="abs" name="datatype"> <input type="radio" id="abs" value="abs" name="datatype">