fix js template
This commit is contained in:
parent
ffa9b52778
commit
731f1bc5b5
@ -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 } }
|
||||
alert("file uploaded successfully");
|
||||
{ { end } }
|
||||
if (isSuccess) {
|
||||
alert("file uploaded successfully");
|
||||
}
|
||||
</script>
|
||||
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user