Wiki version picker not working correctly

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Wiki version picker not working correctly

Post by Andlac028 »

Hi!
LÖVE wiki version picker don't work correctly - Template newinoldin is not filtered by versions. When I looked at source code, I found these errors:
1. In function filterVersion in withAddedRemoved: versions are not compared correctly and element.style.display=no null, but 'none' (null unsets that style, but 'none' sets style - hides element)
2. data-love-version-removed element attribute is not calculated correctly (it is always same as data-love-version-added, because both are generated by selecting first link (<a>) element, which works correctly, when used with added and removed (where is only one link), but in newinoldin, there are two links with versions...)

Please, can you fix these errors (if I'm not wrong)?
Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests