fix js template

This commit is contained in:
rmanach 2025-01-03 09:22:33 +01:00
parent ffa9b52778
commit 731f1bc5b5

View File

@ -94,13 +94,14 @@
{{ end }}
</body>
<script type="text/javascript">
var isSuccess = {{.IsSuccess }};
var submit = document.getElementById("submit");
submit.addEventListener("submit", function () {
submit.disabled = true;
});
{ { if .IsSuccess } }
if (isSuccess) {
alert("file uploaded successfully");
{ { end } }
}
</script>
</html>