diff --git a/wled00/data/settings_um.htm b/wled00/data/settings_um.htm index 5ba13605..e3c8e582 100644 --- a/wled00/data/settings_um.htm +++ b/wled00/data/settings_um.htm @@ -29,7 +29,10 @@ if (numM > 0 || locip) ldS(); else gId("um").innerHTML = "No Usermods installed."; } - function check(o,k) { + // https://stackoverflow.com/questions/3885817/how-do-i-check-that-a-number-is-float-or-integer + function isF(n) { return n === +n && n !== (n|0); } + function isI(n) { return n === +n && n === (n|0); } + function check(o,k) { // input object, pin owner key var n = o.name.replace("[]","").substr(-3); if (o.type=="number" && n.substr(0,3)=="pin") { for (var i=0; i`; - urows += `${f}:
`; + else if (!a) urows += ``; + urows += `
`; } } function ldS() { diff --git a/wled00/html_settings.h b/wled00/html_settings.h index 159fa875..31a1159d 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -408,7 +408,7 @@ type="submit">Save & Reboot)====="; // Autogenerated from wled00/data/settings_um.htm, do not edit!! const char PAGE_settings_um[] PROGMEM = R"=====(Usermod Settings