sync-docs: fix selection menu when opening 'latest' man

'devel' will always sort first, so the highest version is the second
entry, not the first one
This commit is contained in:
Luca Boccassi
2025-05-30 02:02:01 +01:00
parent 34d63ac879
commit 1cd995185b

View File

@@ -26,7 +26,7 @@ $(document).ready(function() {
$.each( data, function(_, version) {
if (version == dirname) {
items.push( "<option selected value='" + version + "'>" + "systemd " + version + "</option>");
} else if (dirname == "latest" && version == data[0]) {
} else if (dirname == "latest" && version == data[1]) {
items.push( "<option selected value='" + version + "'>" + "systemd " + version + "</option>");
} else {
items.push( "<option value='" + version + "'>" + "systemd " + version + "</option>");