diff --git a/html_orig/css/app.css b/html_orig/css/app.css
index a326c3e..43b5322 100644
--- a/html_orig/css/app.css
+++ b/html_orig/css/app.css
@@ -845,7 +845,7 @@ form span.required {
#ap-list {
column-count: 1; } }
-#ap-loader, #ap-noscan {
+#ap-loader, #ap-noscan, #ap-scan {
background: rgba(255, 255, 255, 0.1);
border-radius: 5px;
padding: 0.38198rem;
@@ -917,9 +917,11 @@ form span.required {
word-wrap: normal; }
.AP-preview-nil {
- padding: 0.38198rem 0.61805rem;
- border-radius: 3px;
- border: 2px dashed black; }
+ padding: 8px;
+ border-radius: 5px;
+ border: 1px dashed #ddd;
+ width: 250px;
+ height: 94px; }
.AP-preview .wrap {
flex-direction: row;
diff --git a/html_orig/lang/en.php b/html_orig/lang/en.php
index 64c16ff..668e0ee 100644
--- a/html_orig/lang/en.php
+++ b/html_orig/lang/en.php
@@ -30,6 +30,7 @@ return [
'wifi.submit' => 'Apply!',
'wifi.scanning' => 'Scanning',
+ 'wifi.scan_now' => 'Start scanning!',
'wifi.cant_scan_no_sta' => 'Can\'t scan with Client mode disabled.',
'wifi.select_ssid' => 'Available networks:',
diff --git a/html_orig/pages/cfg_wifi.php b/html_orig/pages/cfg_wifi.php
index e040fe9..6bed2f7 100644
--- a/html_orig/pages/cfg_wifi.php
+++ b/html_orig/pages/cfg_wifi.php
@@ -85,7 +85,8 @@
-
= tr('wifi.scanning') ?>.
+
+
= tr('wifi.scanning') ?>.
= tr('wifi.cant_scan_no_sta') ?>
@@ -238,6 +239,13 @@
});
}
+ function startScanning() {
+ $('#ap-loader').removeClass('hidden');
+ $('#ap-scan').addClass('hidden');
+ $('#ap-loader .anim-dots').html('.');
+ scanAPs();
+ }
+
/** Ask the CGI what APs are visible (async) */
function scanAPs() {
$.get('http://'+_root+'= url('wifi_scan', true) ?>', onScan);
@@ -263,12 +271,12 @@
obj.mode = +obj.mode;
$('#ap-noscan').toggleClass('hidden', obj.mode != 2);
- $('#ap-loader').toggleClass('hidden', obj.mode == 2);
+ $('#ap-scan').toggleClass('hidden', obj.mode == 2);
- // scan if not AP
- if (obj.mode != 2) {
- scanAPs();
- }
+// // scan if not AP
+// if (obj.mode != 2) {
+// scanAPs();
+// }
}
wifiInit({mode: '%opmode%'});
diff --git a/html_orig/pages/cfg_wifi_conn.php b/html_orig/pages/cfg_wifi_conn.php
index bcbf1fd..e12cfa2 100755
--- a/html_orig/pages/cfg_wifi_conn.php
+++ b/html_orig/pages/cfg_wifi_conn.php
@@ -6,48 +6,46 @@
diff --git a/html_orig/sass/pages/_wifi.scss b/html_orig/sass/pages/_wifi.scss
index 8e97dde..9bc4359 100755
--- a/html_orig/sass/pages/_wifi.scss
+++ b/html_orig/sass/pages/_wifi.scss
@@ -13,7 +13,7 @@
margin: 0 (- dist(-3));
}
-#ap-loader, #ap-noscan {
+#ap-loader, #ap-noscan, #ap-scan {
background: rgba(white, .1);
border-radius: 5px;
padding: dist(-2);
@@ -118,9 +118,11 @@
}
.AP-preview-nil {
- padding: dist(-2) dist(-1);
- border-radius: 3px;
- border: 2px dashed black;
+ padding: 8px;
+ border-radius: 5px;
+ border: 1px dashed #ddd;
+ width: 250px;
+ height: 94px;
}
.AP-preview {