some Fixes on Webui

This commit is contained in:
Marcel Peterkau 2022-08-22 21:25:14 +02:00
parent 45363b10fe
commit 35361449eb
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="static/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="static/img/favicon-16x16.png">
<link rel="manifest" href="static/img/site.webmanifest">
<meta http-equiv="refresh" content="3; url='/index.htm'" />
<meta http-equiv="refresh" content="3; url='index.htm'" />
</head>
<body>

View File

@ -313,13 +313,13 @@ void WebserverPOST_Callback(AsyncWebServerRequest *request)
if (request->hasParam("reset_ee_pds"))
{
AsyncWebParameter *param = request->getParam("reset_ee_pds");
if (param->value() == "checked")
if (param->value() == "on")
globals.requestEEAction = globals.requestEEAction == EE_CFG_FORMAT ? EE_FORMAT_ALL : EE_PDS_FORMAT;
}
if (request->hasParam("reset_ee_cfg"))
{
AsyncWebParameter *param = request->getParam("reset_ee_cfg");
if (param->value() == "checked")
if (param->value() == "on")
globals.requestEEAction = globals.requestEEAction == EE_PDS_FORMAT ? EE_FORMAT_ALL : EE_CFG_FORMAT;
}
}