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