only require one wifi scan to submit quest

This commit is contained in:
Gwendolyn 2024-12-28 19:55:09 +01:00
parent e55ea84477
commit c78e9ed600

View file

@ -1556,17 +1556,15 @@ c3nav = {
$scanner.empty(); $scanner.empty();
if (c3nav._quest_wifi_scans.length < 2) { if (c3nav._quest_wifi_scans.length < 1) {
$scanner.append('<p>Scanning… Please do not close this popup and do not move.</p>'); $scanner.append('<p>Scanning… Please do not close this popup and do not move.</p>');
} else { } else {
if (c3nav._quest_wifi_scans.length > 2) {
$('#modal input[name=data]').val(JSON.stringify({ $('#modal input[name=data]').val(JSON.stringify({
wifi: c3nav._quest_wifi_scans, wifi: c3nav._quest_wifi_scans,
ibeacon: c3nav._quest_ibeacon_scans, ibeacon: c3nav._quest_ibeacon_scans,
})) }))
$('#modal button[type=submit]').show(); $('#modal button[type=submit]').show();
} }
}
if (wifi_display_results.length > 0) { if (wifi_display_results.length > 0) {
$scanner.append($wifi_table); $scanner.append($wifi_table);