Merge branch 'Enhance/v099' into master

pull/69/head
Hieromon Ikasamo 6 years ago committed by GitHub
commit 916e2b9ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/AutoConnectElementBasisImpl.h

@ -181,6 +181,7 @@ void AutoConnectRadioBasis::empty(const size_t reserve) {
const String AutoConnectRadioBasis::toHTML(void) const { const String AutoConnectRadioBasis::toHTML(void) const {
String html = String(""); String html = String("");
if (enable) {
if (label.length()) { if (label.length()) {
html = label; html = label;
if (order == AC_Vertical) if (order == AC_Vertical)
@ -197,6 +198,7 @@ const String AutoConnectRadioBasis::toHTML(void) const {
if (order == AC_Vertical) if (order == AC_Vertical)
html += String(F("<br>")); html += String(F("<br>"));
} }
}
return html; return html;
} }
@ -245,6 +247,7 @@ void AutoConnectSelectBasis::select(const String& value) {
const String AutoConnectSelectBasis::toHTML(void) const { const String AutoConnectSelectBasis::toHTML(void) const {
String html = String(""); String html = String("");
if (enable) {
if (label.length()) if (label.length())
html = String(F("<label for=\"")) + name + String("\">") + label + String(F("</label>")); html = String(F("<label for=\"")) + name + String("\">") + label + String(F("</label>"));
html += String(F("<select name=\"")) + name + String(F("\" id=\"")) + name + String("\">"); html += String(F("<select name=\"")) + name + String(F("\" id=\"")) + name + String("\">");
@ -256,6 +259,7 @@ const String AutoConnectSelectBasis::toHTML(void) const {
html += ">" + option + String(F("</option>")); html += ">" + option + String(F("</option>"));
} }
html += String(F("</select>")); html += String(F("</select>"));
}
return html; return html;
} }

Loading…
Cancel
Save