Intel AMT Scanning dialog improvement
Ylian Saint-Hilaire committed
Jun 19, 2020 at 21:22 UTC
1bad53d51664fd997f9d554ff15b3fd985cc1506
1 file changed
+9
-3
views/default.handlebars
+9
-3
@@ -2805,7 +2805,7 @@
2805
}
2806
case 'scanamtdevice': {
2807
// Populate the Intel AMT scan dialog box with the result of the RMCP scan
2808
- if ((xxdialogMode == null) || (!Q('dp1range')) || (Q('dp1range').value != message.event.range)) return;
2808
+ if ((xxdialogMode == null) || (!Q('dp1range')) || (xxdialogTag != ('AMTSCAN:' + message.event.range))) return;
2809
var x = '';
2810
if (message.event.results == null) {
2811
// The scan could not occur because of an error. Likely the user range was invalid.
@@ -3867,10 +3867,16 @@
3867
3868
// If the user presses the "Scan" button on the Intel AMT scanning dialog box, start a scan.
3869
function addAmtScanToMeshButton() {
3870
+ var range = Q('dp1range').value.trim();
3871
+ var rangeSplit = range.split(' ');
3872
+ if (rangeSplit.length > 1) { range = rangeSplit[rangeSplit.length - 1]; }
3873
+ range = range.trim();
3874
+ if (range == '') return;
3875
QE('dp1range', false);
3876
QE('dp1rangebutton', false);
3872
- QH('dp1results', '<div style=width:100%;text-align:center;margin-top:12px>' + "Scanning..." + '</div>');
3873
- meshserver.send({ action: 'scanamtdevice', range: Q('dp1range').value });
3877
+ QH('dp1results', '<div style=width:100%;text-align:center;margin-top:20px>' + "Scanning..." + '</div><div style=width:100%;text-align:center;margin-top:6px;color:#666>' + range + '</div>');
3878
+ xxdialogTag = 'AMTSCAN:' + range;
3879
+ meshserver.send({ action: 'scanamtdevice', range: range });
3880
}
3881
3882
// Called when a scanned computer is checked or unchecked.