update the javascript to currectly select the latest version as if we're in the latest folder
@@ -67,14 +67,21 @@ function populateOptions(optionSelector, otherSelectors){
}
function populateVersionDropDown(selector, values){
- var select = $(selector);
+ var select = $(selector)
- $('option', select).remove();
+ $('option', select).remove()
$.each(values, function(index, text) {
- $('<option/>', { 'value' : text, 'text': text }).appendTo(select);
+ $('<option/>', { 'value' : text, 'text': text }).appendTo(select)
});
- select.val(currentVersion());
+
+ var version = currentVersion()
+ if(version==='latest'){
+ select.selectedIndex = 0
+ }
+ else {
+ select.val(version)
+ }
}
function getPackageUrl(language, package, version){
