Skip to content
Snippets Groups Projects
Commit 0f57781c authored by Julian Labus's avatar Julian Labus Committed by David Bauer
Browse files

app: add bootloader images to table view

parent ae4210e7
No related branches found
No related tags found
No related merge requests found
......@@ -1020,6 +1020,9 @@ var firmwarewizard = function() {
$('#firmwareTableBody').innerHTML = '';
var initializeRevHTML = function(rev) {
if (bootloaderRevBranchDict[rev.branch] === undefined) {
bootloaderRevBranchDict[rev.branch] = document.createElement('span');
}
if (upgradeRevBranchDict[rev.branch] === undefined) {
upgradeRevBranchDict[rev.branch] = document.createElement('span');
}
......@@ -1047,6 +1050,11 @@ var firmwarewizard = function() {
factoryRevBranchDict[rev.branch].appendChild(a);
factoryRevBranchDict[rev.branch].appendChild(textNodeEnd);
show = true;
} else if (rev.type == 'bootloader') {
bootloaderRevBranchDict[rev.branch].appendChild(textNodeStart);
bootloaderRevBranchDict[rev.branch].appendChild(a);
bootloaderRevBranchDict[rev.branch].appendChild(textNodeEnd);
show = true;
}
};
......@@ -1077,6 +1085,7 @@ var firmwarewizard = function() {
var revisions = sortByRevision(images[vendor][model]);
var upgradeRevBranchDict = {};
var factoryRevBranchDict = {};
var bootloaderRevBranchDict = {};
var show = false;
revisions.forEach(initializeRevHTML);
......@@ -1096,6 +1105,7 @@ var firmwarewizard = function() {
tdModel.innerText = model;
tr.appendChild(tdModel);
tr.appendChild(createRevTd(bootloaderRevBranchDict));
tr.appendChild(createRevTd(factoryRevBranchDict));
tr.appendChild(createRevTd(upgradeRevBranchDict));
......
......@@ -111,13 +111,14 @@
<tr>
<th>Hersteller</th>
<th>Modell</th>
<th>Bootloader-Image</th>
<th>Erstinstallation</th>
<th>Upgrade</th>
</tr>
</thead>
<tbody id="firmwareTableBody">
<tr>
<td colspan="4">Loading...</td>
<td colspan="5">Loading...</td>
</tr>
</tbody>
</table>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment