Browse Source

fix: web setup.html: textfield max name length of INVERTER name

off-by-one name length flaw: entering 16 chars for inverter. name would be 15 chars (cut) long after SAVE and reboot

Signed-off-by: Peter H. Demus <peter@demus.de>
pull/1180/head
Peter H. Demus 2 years ago
parent
commit
cc35dca333
  1. 2
      src/web/html/setup.html

2
src/web/html/setup.html

@ -632,7 +632,7 @@
})
});
iv.append(mlE("Name*", inp(id + "Name", obj["name"], 16, ["text"], null, "text", "[\\-\\+A-Za-z0-9.\\/#$%&=_]+", "Invalid input")));
iv.append(mlE("Name*", inp(id + "Name", obj["name"], 15, ["text"], null, "text", "[\\-\\+A-Za-z0-9.\\/#$%&=_]+", "Invalid input")));
for(var j of [
["ModPwr", "ch_max_pwr", "Max Module Power (Wp)", 4, "[0-9]+"],

Loading…
Cancel
Save