From 2e597e72e939504eac6f3e8271dbf84c8daab417 Mon Sep 17 00:00:00 2001 From: Robert Foss Date: Thu, 31 Mar 2016 21:26:22 -0400 Subject: [PATCH] Improve previous EUS JS select fix to work better on mobile UIs. --- app/modules/enduser_setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modules/enduser_setup.c b/app/modules/enduser_setup.c index d6e44632..01f384e2 100644 --- a/app/modules/enduser_setup.c +++ b/app/modules/enduser_setup.c @@ -219,6 +219,7 @@ static const char http_header_500[] = "HTTP/1.1 500 Internal Error\r\n\r\n"; refresh_status(); refresh_ap_list(); document.getElementById("aplist").onclick = set_ssid_field; + document.getElementById("aplist").onchange = set_ssid_field; document.getElementById("credentialsForm").addEventListener("submit", function(){ fetch('/status','GET', new_status); }); @@ -228,7 +229,7 @@ static const char http_header_500[] = "HTTP/1.1 500 Internal Error\r\n\r\n"; #endif static const char http_html_backup[] = -"WiFi Login

WiFi Login

Connect gadget to your WiFi network

Status: Updating...

"; +"WiFi Login

WiFi Login

Connect gadget to your WiFi network

Status: Updating...

"; typedef struct scan_listener