Fix typo in firmware flasher

10.3.x-maintenance
Kyle Christensen 2015-05-26 18:22:48 -04:00
parent 774fcf5f68
commit bc6d8513ea
1 changed files with 4 additions and 4 deletions

View File

@ -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++,