Skip to content

Commit

Permalink
main/Faikin: Fix main page javascript
Browse files Browse the repository at this point in the history
"restarting" status now disappears when gone. Add missing space, this also fixes
broken "offline" state handling (controls disappear)

Signed-off-by: Pavel Fedin <pavel_fedin@mail.ru>
  • Loading branch information
Sonic-Amiga committed Jun 24, 2023
1 parent 6cb6279 commit c38d592
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main/Faikin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,11 @@ web_root (httpd_req_t * req)
"s('⏻',(o.slave?'❋':'')+(o.antifreeze?'❄':''));" //
"s('Fan',(o.fanrpm?o.fanrpm+'RPM':'')+(o.antifreeze?'❄':'')+(o.control?'✷':''));" //
"e('fan',o.fan);" //
"if(o.shutdown){s('shutdown','Restarting: '+o.shutdown);h('shutdown',true);};" //
"if(o.shutdown){"
"s('shutdown','Restarting: '+o.shutdown);"
"h('shutdown',true);"
"} else "
"h('shutdown',false);"
"}"
"function c()"
"{" //
Expand All @@ -1245,7 +1249,7 @@ web_root (httpd_req_t * req)
"if (this.readyState == 4) {"
"if (this.status == 200)"
"decode(this.responseText);"
"else"
"else "
"g('top').className='off'"
"}"
"};"
Expand Down

0 comments on commit c38d592

Please sign in to comment.