-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert timeout changes and set correct style classes of the controls …
- Loading branch information
Showing
6 changed files
with
805 additions
and
98,813 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...root-external/patches/occu/0182-WebUI-Fix-DimmerControl-InitButtonsWithChannelState.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>"); | ||
|
Oops, something went wrong.