mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
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:
@@ -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>");
|
||||
|
||||
Reference in New Issue
Block a user