Prevent double clicking of the submit button on login (#3554)

Signed-off-by: Philip Corliss <pcorliss@drwholdings.com>
This commit is contained in:
Philip Corliss
2024-06-13 08:40:26 +02:00
committed by GitHub
parent 23efe9200c
commit a1748467cf
2 changed files with 13 additions and 0 deletions
+5
View File
@@ -32,6 +32,11 @@ body {
outline: none;
}
.dex-btn:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.dex-btn-icon {
background-position: center;
background-repeat: no-repeat;
+8
View File
@@ -32,4 +32,12 @@
{{ end }}
</div>
<script type="text/javascript">
document.querySelector('form').onsubmit = function(e) {
var el = document.querySelector('#submit-login');
el.setAttribute('disabled', 'disabled');
};
</script>
{{ template "footer.html" . }}