From dbab55758a7750af383c6a117953d5fa7d4e1269 Mon Sep 17 00:00:00 2001 From: arendst Date: Sat, 19 Aug 2017 16:29:51 +0200 Subject: [PATCH] Shrink module configuration webpage --- README.md | 2 +- sonoff/_releasenotes.ino | 5 ++++- sonoff/sonoff.ino | 2 +- sonoff/webserver.ino | 38 +++++++++++++++++++++----------------- 4 files changed, 27 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index f6dd7a812..53ac1d329 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## Sonoff-Tasmota Provide ESP8266 based Sonoff by [iTead Studio](https://www.itead.cc/) and ElectroDragon IoT Relay with Serial, Web and MQTT control allowing 'Over the Air' or OTA firmware updates using Arduino IDE. -Current version is **5.6.1** - See [sonoff/_releasenotes.ino](https://github.com/arendst/Sonoff-Tasmota/blob/master/sonoff/_releasenotes.ino) for change information. +Current version is **5.6.1a** - See [sonoff/_releasenotes.ino](https://github.com/arendst/Sonoff-Tasmota/blob/master/sonoff/_releasenotes.ino) for change information. ### ATTENTION All versions diff --git a/sonoff/_releasenotes.ino b/sonoff/_releasenotes.ino index 3c522d69b..0e1e7f09c 100644 --- a/sonoff/_releasenotes.ino +++ b/sonoff/_releasenotes.ino @@ -1,4 +1,7 @@ -/* 5.6.1 20170818 +/* 5.6.1a + * Shrink module configuration webpage + * + * 5.6.1 20170818 * Change module list order in webpage * Fix Sonoff T1 1CH and 2CH configuration (#751) * diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino index a0c609eb9..38660811c 100644 --- a/sonoff/sonoff.ino +++ b/sonoff/sonoff.ino @@ -25,7 +25,7 @@ - Select IDE Tools - Flash Size: "1M (no SPIFFS)" ====================================================*/ -#define VERSION 0x05060100 // 5.6.1 +#define VERSION 0x05060101 // 5.6.1a enum log_t {LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE, LOG_LEVEL_ALL}; enum week_t {Last, First, Second, Third, Fourth}; diff --git a/sonoff/webserver.ino b/sonoff/webserver.ino index 8c40dc859..f17883609 100644 --- a/sonoff/webserver.ino +++ b/sonoff/webserver.ino @@ -128,7 +128,7 @@ const char HTTP_SCRIPT_CONSOL[] PROGMEM = "return false;" "}" ""; -const char HTTP_SCRIPT_MODULE[] PROGMEM = +const char HTTP_SCRIPT_MODULE1[] PROGMEM = "var os;" "function sk(s,g){" "var o=os.replace(\"value='\"+s+\"'\",\"selected value='\"+s+\"'\");" @@ -136,6 +136,11 @@ const char HTTP_SCRIPT_MODULE[] PROGMEM = "}" "function sl(){" "var o0=\""; +const char HTTP_SCRIPT_MODULE2[] PROGMEM = + "}1'%d'>%02d %s}2"; // "}1" and "}2" means do not use "}" in Module name and Sensor name +const char HTTP_SCRIPT_MODULE3[] PROGMEM = + "\";" + "os=o0.replace(/}1/g,\"