UCL-INGI / INGInious

INGInious is a secure and automated exercises assessment platform using your own tests, also providing a pluggable interface with your existing LMS.
http://www.inginious.org
Other
202 stars 139 forks source link

[frontend] Freeze on task edit #984

Closed tbarbette closed 7 months ago

tbarbette commented 9 months ago

Describe the bug Sometimes, clicking on "Appliquer les changements" when editing a task leads to a browser freeze.

INGInious installation details

To Reproduce It is not 100% reproducible.

Note: It particularly happens if I submit a file in a second tab, and then go back to edit the task and hit "submit".

Expected behavior The browser does not freeze :)

Screenshots Profiling of the page in Chrome: image A problem I saw in the console (not always I think): image

Desktop (please complete the following information):

Additional context Anthony identified the source as potentially

    // Open file selector on div click
    $(".upload-area").click(function(){
        $("#file").click();
    });

This is in line with the profiling screenshot shown above.