Fix typo in firmware flasher
parent
774fcf5f68
commit
bc6d8513ea
|
@ -39,7 +39,7 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
var showDevReleases = ($('input.show_development_releases').is(':checked'));
|
var showDevReleases = ($('input.show_development_releases').is(':checked'));
|
||||||
releases_e.append($("<option value='0'>{0}</option>".format(chrome.i18n.getMessage('firmwareFlasherOptionLabelSelectFirmware'))));
|
releases_e.append($("<option value='0'>{0}</option>".format(chrome.i18n.getMessage('firmwareFlasherOptionLabelSelectFirmware'))));
|
||||||
|
|
||||||
var releaseDescritpors = [];
|
var releaseDescriptors = [];
|
||||||
TABS.firmware_flasher.releases.forEach(function(release){
|
TABS.firmware_flasher.releases.forEach(function(release){
|
||||||
release.assets.forEach(function(asset){
|
release.assets.forEach(function(asset){
|
||||||
var targetFromFilenameExpression = /.*_(.*)\.(.*)/;
|
var targetFromFilenameExpression = /.*_(.*)\.(.*)/;
|
||||||
|
@ -81,11 +81,11 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
"status" : release.prerelease ? "release-candidate" : "stable"
|
"status" : release.prerelease ? "release-candidate" : "stable"
|
||||||
};
|
};
|
||||||
|
|
||||||
releaseDescritpors.push(descriptor);
|
releaseDescriptors.push(descriptor);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
releaseDescritpors.sort(function(o1,o2){
|
releaseDescriptors.sort(function(o1,o2){
|
||||||
// compare versions descending
|
// compare versions descending
|
||||||
var cmpVal = semver(o2.version).compare(semver(o1.version));
|
var cmpVal = semver(o2.version).compare(semver(o1.version));
|
||||||
if (cmpVal == 0){
|
if (cmpVal == 0){
|
||||||
|
@ -96,7 +96,7 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
});
|
});
|
||||||
|
|
||||||
var optionIndex = 1;
|
var optionIndex = 1;
|
||||||
releaseDescritpors.forEach(function(descriptor){
|
releaseDescriptors.forEach(function(descriptor){
|
||||||
var select_e =
|
var select_e =
|
||||||
$("<option value='{0}'>{1} {2} {3} ({4})</option>".format(
|
$("<option value='{0}'>{1} {2} {3} ({4})</option>".format(
|
||||||
optionIndex++,
|
optionIndex++,
|
||||||
|
|
Loading…
Reference in New Issue