diff --git a/photologue_custom/templates/photologue/upload.html b/photologue_custom/templates/photologue/upload.html index e4a5c6d..d2e0047 100644 --- a/photologue_custom/templates/photologue/upload.html +++ b/photologue_custom/templates/photologue/upload.html @@ -60,6 +60,12 @@ gallerySelectUpdate = () => { } gallerySelect.addEventListener('change', gallerySelectUpdate); gallerySelectUpdate(); + +// On submit, show a message to make user wait +document.getElementById('upload_form').addEventListener('submit', (e) => { + document.getElementById('submit-id-submit').disabled = true; + document.getElementById('submit-id-submit').value = "Please be patient"; +}) {% endblock %} @@ -67,7 +73,7 @@ gallerySelectUpdate();

{% trans "Upload" %}

-
{% csrf_token %} + {% csrf_token %}
{% trans "Drag and drop photos here" %}