summaryrefslogtreecommitdiffstats
path: root/documentation/sphinx-static
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/sphinx-static')
-rw-r--r--documentation/sphinx-static/switchers.js.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/documentation/sphinx-static/switchers.js.in b/documentation/sphinx-static/switchers.js.in
index e7ef2ce5f5..5ae0325e6d 100644
--- a/documentation/sphinx-static/switchers.js.in
+++ b/documentation/sphinx-static/switchers.js.in
@@ -65,15 +65,15 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
65 function build_version_select(current_series, current_version) { 65 function build_version_select(current_series, current_version) {
66 var buf = ['<select>']; 66 var buf = ['<select>'];
67 67
68 $.each(all_versions, function(version, title) { 68 $.each(all_versions, function(version, vers_data) {
69 var series = version.substr(0, 3); 69 var series = version.substr(0, 3);
70 if (series == current_series) { 70 if (series == current_series) {
71 if (version == current_version) 71 if (version == current_version)
72 buf.push('<option value="' + version + '" selected="selected">' + title + '</option>'); 72 buf.push('<option value="' + version + '" selected="selected">' + vers_data["title"] + '</option>');
73 else 73 else
74 buf.push('<option value="' + version + '">' + title + '</option>'); 74 buf.push('<option value="' + version + '">' + vers_data["title"] + '</option>');
75 } else { 75 } else {
76 buf.push('<option value="' + version + '">' + title + '</option>'); 76 buf.push('<option value="' + version + '">' + vers_data["title"] + '</option>');
77 } 77 }
78 }); 78 });
79 79
@@ -223,7 +223,7 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
223 $('#outdated-warning').html('Version ' + release + ' of the project is now considered obsolete, please select and use a more recent version'); 223 $('#outdated-warning').html('Version ' + release + ' of the project is now considered obsolete, please select and use a more recent version');
224 $('#outdated-warning').css('padding', '.5em'); 224 $('#outdated-warning').css('padding', '.5em');
225 } else if (release != "dev") { 225 } else if (release != "dev") {
226 $.each(all_versions, function(version, title) { 226 $.each(all_versions, function(version, vers_data) {
227 var series = version.substr(0, 3); 227 var series = version.substr(0, 3);
228 if (series == current_series && version != release) { 228 if (series == current_series && version != release) {
229 $('#outdated-warning').html('This document is for outdated version ' + release + ', you should select the latest release version in this series, ' + version + '.'); 229 $('#outdated-warning').html('This document is for outdated version ' + release + ', you should select the latest release version in this series, ' + version + '.');