From 1bad53d51664fd997f9d554ff15b3fd985cc1506 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 19 Jun 2020 21:22:01 -0700 Subject: [PATCH] Intel AMT Scanning dialog improvement --- views/default.handlebars | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/views/default.handlebars b/views/default.handlebars index 3f86dabf..6f04cd82 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -2805,7 +2805,7 @@ } case 'scanamtdevice': { // Populate the Intel AMT scan dialog box with the result of the RMCP scan - if ((xxdialogMode == null) || (!Q('dp1range')) || (Q('dp1range').value != message.event.range)) return; + if ((xxdialogMode == null) || (!Q('dp1range')) || (xxdialogTag != ('AMTSCAN:' + message.event.range))) return; var x = ''; if (message.event.results == null) { // The scan could not occur because of an error. Likely the user range was invalid. @@ -3867,10 +3867,16 @@ // If the user presses the "Scan" button on the Intel AMT scanning dialog box, start a scan. function addAmtScanToMeshButton() { + var range = Q('dp1range').value.trim(); + var rangeSplit = range.split(' '); + if (rangeSplit.length > 1) { range = rangeSplit[rangeSplit.length - 1]; } + range = range.trim(); + if (range == '') return; QE('dp1range', false); QE('dp1rangebutton', false); - QH('dp1results', '
' + "Scanning..." + '
'); - meshserver.send({ action: 'scanamtdevice', range: Q('dp1range').value }); + QH('dp1results', '
' + "Scanning..." + '
' + range + '
'); + xxdialogTag = 'AMTSCAN:' + range; + meshserver.send({ action: 'scanamtdevice', range: range }); } // Called when a scanned computer is checked or unchecked.