TUM-Dev / gocast

TUMs lecture streaming service.
https://live.rbg.tum.de/
MIT License
180 stars 42 forks source link

[Course-Import]: Don't ask whether to leave the page or not all the time. #1175

Open joschahenningsen opened 10 months ago

joschahenningsen commented 10 months ago

When navigating the course import screen, the browser always asks if we're sure that we want to leave the page with unsaved changes. The answer is usually no, we want to stay on the page. This behavior is weird and should be fixed.

DawinYurtseven commented 9 months ago

found out that if the body of that form in "course-import.gohtml" is for example a div, then it won't ask if they want to leave the page. my guess here is because we fetch without using some kind of submit on the HTML side, the web-browser thinks the options chosen won't be saved. is it important that the body is a form or could we just make it a div?