Skip to content

Commit

Permalink
Delay the send signature button for 3 seconds (#240)
Browse files Browse the repository at this point in the history
* Delay the send signature button for 3 seconds
* Do not hide the submit button
  • Loading branch information
danniel authored Mar 18, 2024
1 parent 420fbc4 commit 883e1e1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion backend/templates/v1/signature.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</button>
</span>
<input id="signature-input" type="hidden" name="signature">
<button class="btn btn-primary btn-lg" type="submit">
<button id="signature-send" class="btn btn-primary btn-lg disabled="disabled" type="submit">
Trimite
</button>
</form>
Expand All @@ -33,4 +33,11 @@

{% block scripts %}
<script type="text/javascript" src="{{ static('js/signature.js') }}"></script>
<script>
$(document).ready(function() {
setTimeout(function() {
$("#signature-send").removeAttr("disabled");
}, 3000);
});
</script>
{% endblock %}

0 comments on commit 883e1e1

Please sign in to comment.