Fixed APScan select bug + Attack status bug

- fixed: APScan select wasn't working when Multiple AP selection was disbaled.
- fixed: Attack stati wasn't shown
- improved: design of select,deselect all buttons
This commit is contained in:
Stefan Kremser
2017-05-15 19:36:44 +02:00
parent 98deeb503b
commit 3128dbe83f
5 changed files with 23 additions and 15 deletions

View File

@@ -3,6 +3,7 @@ var networkInfo = getE('networksFound');
var scanInfo = getE('scanInfo');
var apMAC = getE('apMAC');
var startStopScan = getE('startStopScan');
var selectAllBtns = getE('selectAllBtns');
var autoScan = false;
function toggleScan(onoff) {
@@ -31,13 +32,14 @@ function getResults() {
res.aps = res.aps.sort(compare);
networkInfo.innerHTML = res.aps.length;
apMAC.innerHTML = "";
if (res.multiAPs == 1) selectAllBtns.style.visibility = 'visible';
else selectAllBtns.style.visibility = 'hidden';
var tr = '';
if (res.aps.length > 0) {
tr += '<tr><th>Ch</th><th>SSID</th><th>RSSI</th><th>Encrypt.</th>';
if (res.multiAPs == 1) tr += '<th><button class="marginNull button-primary" onclick="select(-1)">select</button>&nbsp|&nbsp<button class="marginNull button-primary" onclick="select(-2)">deselect</button>&nbspall</th></tr>';
else tr += '<th>Select</th></tr>'
tr += '<th>Select</th></tr>'
}
for (var i = 0; i < res.aps.length; i++) {