File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -55,4 +55,10 @@ async function scanWifi()
5555 opt . text = network . ssid ;
5656 s . add ( opt )
5757 }
58+ }
59+
60+ function toggleData ( )
61+ {
62+ const dataField = eByID ( "newData_url" )
63+ dataField . disabled = ! dataField . disabled
5864}
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ String webConfigRequest(AsyncWebServerRequest *request)
7272 response += " <form action=\" " + String (UPDATE_REMOTE_URL) + " \" method=\" post\" >" ;
7373 response += " <input type=\" hidden\" id=\" newFW_url\" name=\" newFW_url\" />" ;
7474 response += " <input type=\" hidden\" id=\" newData_url\" name=\" newData_url\" />" ;
75+ response += " <input type=\" checkbox\" id=\" updateData\" onClick=\" toggleData()\" checked />Update Dashboard Data<br/>" ;
7576 response += " <input type=\" submit\" value=\" Update\" id=\" update_btn\" disabled/>" ;
7677 response += " </form>" ;
7778 response += " <h2>Manual Update</h2>" ;
You can’t perform that action at this time.
0 commit comments