Skip to content

Commit

Permalink
Limit in upgrade only support current top versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-X-Net committed Jan 29, 2023
1 parent 61ddb74 commit a17c734
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions code/default/launcher/web_ui/config_update.html
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,21 @@
}
});
}

var current_version = "";
var pageRequests = {
'cmd': 'get_version'
};
$.ajax({
type: 'GET',
url: '/config',
data: pageRequests,
dataType: 'JSON',
success: function (result) {
current_version = result['current_version'];
}
});

function get_releasedversions() {
$.ajax({
type: 'GET',
Expand All @@ -402,6 +417,9 @@

for (var i in result) {
var ver = result[i]['tag_name'];
if ( ver[0] != current_version[0]) {
continue;
}
var new_option = document.getElementById("released-versions-selector").appendChild(document.createElement("option"));
new_option.value = ver;
new_option.text = ver;
Expand Down

0 comments on commit a17c734

Please sign in to comment.