ProfZijlstra / video_site

MIT License
4 stars 2 forks source link

Bug: upload new image replaces image inside description #92

Closed ProfZijlstra closed 1 month ago

ProfZijlstra commented 1 month ago

There is a bug in the lab, when re-uploading an image it replaces the image in the problem description instead of replacing the user provided image further down.

This is clearly a bug in the JavaScript code. When replacing the image it searches for the first image tag inside a parent, and it must have gone up too far (one parent too many).

ProfZijlstra commented 1 month ago

Just fixed this, but cannot push to github yet because of firewall. Will push later this afternoon