Skip to content

Commit

Permalink
revert timeout changes and set correct style classes of the controls …
Browse files Browse the repository at this point in the history
…on creation (#1513, #2516, @jp112sl)
  • Loading branch information
jp112sdl authored Nov 18, 2023
1 parent 0f9e825 commit 005b23b
Show file tree
Hide file tree
Showing 6 changed files with 805 additions and 98,813 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
--- occu/WebUI/www/rega/esp/controls/dimmer.fn.orig
+++ occu/WebUI/www/rega/esp/controls/dimmer.fn
@@ -65,8 +65,10 @@

WriteLine("<td class='CLASS02529'>");
WriteLine("<table width='100%' height='100%' cellspacing='10'>");
- WriteLine("<tr><td><div id='"#chnId#"On' class='ControlBtnOn CLASS02545 j_translate'>${actionStatusControlLblOn}</div></td></tr>");
- WriteLine("<tr><td><div id='"#chnId#"Off' class='ControlBtnOff CLASS02545 j_translate'>${actionStatusControlLblOff}</div></td></tr>");
+ string BtnOnState="On"; string BtnOffState="Off";
+ if (iState == 0) { BtnOnState="Off"; BtnOffState="On"; }
+ WriteLine("<tr><td><div id='"#chnId#"On' class='ControlBtn"#BtnOnState#" CLASS02545 j_translate'>${actionStatusControlLblOn}</div></td></tr>");
+ WriteLine("<tr><td><div id='"#chnId#"Off' class='ControlBtn"#BtnOffState#" CLASS02545 j_translate'>${actionStatusControlLblOff}</div></td></tr>");
WriteLine("</table>");
WriteLine("</td>");

@@ -215,8 +217,10 @@

WriteLine("<td class='CLASS02529'>");
WriteLine("<table width='100%' height='100%' cellspacing='10'>");
- WriteLine("<tr><td><div id='"#chnId#"On' class='ControlBtnOn CLASS02545 j_translate'>${actionStatusControlLblOn}</div></td></tr>");
- WriteLine("<tr><td><div id='"#chnId#"Off' class='ControlBtnOff CLASS02545 j_translate'>${actionStatusControlLblOff}</div></td></tr>");
+ string BtnOnState="On"; string BtnOffState="Off";
+ if (iState == 0) { BtnOnState="Off"; BtnOffState="On"; }
+ WriteLine("<tr><td><div id='"#chnId#"On' class='ControlBtn"#BtnOnState#" CLASS02545 j_translate'>${actionStatusControlLblOn}</div></td></tr>");
+ WriteLine("<tr><td><div id='"#chnId#"Off' class='ControlBtn"#BtnOffState#" CLASS02545 j_translate'>${actionStatusControlLblOff}</div></td></tr>");
WriteLine("</table>");
WriteLine("</td>");

@@ -297,8 +301,10 @@

WriteLine("<td class='CLASS02529'>");
WriteLine("<table width='100%' height='100%' cellspacing='10'>");
- WriteLine("<tr><td><div id='"#chnId#"On' class='ControlBtnOn CLASS02545 j_translate'>${actionStatusControlLblOn}</div></td></tr>");
- WriteLine("<tr><td><div id='"#chnId#"Off' class='ControlBtnOff CLASS02545 j_translate'>${actionStatusControlLblOff}</div></td></tr>");
+ string BtnOnState="On"; string BtnOffState="Off";
+ if (iState == 0) { BtnOnState="Off"; BtnOffState="On"; }
+ WriteLine("<tr><td><div id='"#chnId#"On' class='ControlBtn"#BtnOnState#" CLASS02545 j_translate'>${actionStatusControlLblOn}</div></td></tr>");
+ WriteLine("<tr><td><div id='"#chnId#"Off' class='ControlBtn"#BtnOffState#" CLASS02545 j_translate'>${actionStatusControlLblOff}</div></td></tr>");
WriteLine("</table>");
WriteLine("</td>");

Loading

0 comments on commit 005b23b

Please sign in to comment.