From 0c747a74991ed0c257c97809909673c6f55109ae Mon Sep 17 00:00:00 2001
From: Theo Arends <11044339+arendst@users.noreply.github.com>
Date: Sat, 2 Feb 2019 15:16:35 +0100
Subject: [PATCH] Split module and GPIO ajax list
Split module and GPIO ajax list
---
sonoff/xdrv_01_webserver.ino | 34 +++++++++++++++++++++-------------
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino
index 1974e9128..daf45be9f 100644
--- a/sonoff/xdrv_01_webserver.ino
+++ b/sonoff/xdrv_01_webserver.ino
@@ -145,28 +145,31 @@ const char HTTP_SCRIPT_CONSOL[] PROGMEM =
"return false;"
"}"
"";
-
const char HTTP_SCRIPT_MODULE1[] PROGMEM =
"var os;"
"function sk(s,g){" // s = value, g = id and name
- "var o=os.replace(\"value='\"+s+\"'\",\"selected value='\"+s+\"'\");"
+ "var o=os.replace(/}1/g,\"