Skip to content

Commit ba5df49

Browse files
committed
Fixed: GUI, Floorplan, fixed blind switching (#3267)
1 parent a100912 commit ba5df49

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

History.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Version 4.xxxxx (xxx 2019)
66
- Fixed: GUI, device table initial order column
77
- Fixed: GUI, Switch Log, date parsing in device log (#3206)
88
- Fixed: GUI, Floorplan, contact type can no longer be switch
9+
- Fixed: GUI, Floorplan, fixed blind switching (#3267)
910
- Fixed: GUI, Weight Log now displays correct Unit (#3211)
1011
- Fixed: GUI, OpenZWave Abort Include/Exclude button
1112
- Fixed: YouLess, possible buffer overflow (#3261)

www/js/domoticzdevices.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,16 +1301,14 @@ function Blinds(item) {
13011301
this.data = '';
13021302
if (item.Status == 'Closed') {
13031303
this.image = 'images/blinds48sel.png';
1304-
this.onClick = 'SwitchLight(' + this.index + ",'" + ((item.SwitchType == "Blinds Inverted") ? 'On' : 'Off') + "'," + Device.switchFunction + ',' + this.protected + ');';
13051304
this.image2 = 'images/blindsopen48.png';
1306-
this.onClick2 = 'SwitchLight(' + this.index + ",'" + ((item.SwitchType == "Blinds Inverted") ? 'Off' : 'On') + "'," + Device.switchFunction + ',' + this.protected + ');';
13071305
}
13081306
else {
13091307
this.image = 'images/blindsopen48sel.png';
1310-
this.onClick = 'SwitchLight(' + this.index + ",'" + ((item.SwitchType != "Blinds Inverted") ? 'On' : 'Off') + "'," + Device.switchFunction + ',' + this.protected + ');';
13111308
this.image2 = 'images/blinds48.png';
1312-
this.onClick2 = 'SwitchLight(' + this.index + ",'" + ((item.SwitchType != "Blinds Inverted") ? 'Off' : 'On') + "'," + Device.switchFunction + ',' + this.protected + ');';
13131309
}
1310+
this.onClick = 'SwitchLight(' + this.index + ",'" + ((item.SwitchType == "Blinds Inverted") ? 'On' : 'Off') + "'," + Device.switchFunction + ',' + this.protected + ');';
1311+
this.onClick2 = 'SwitchLight(' + this.index + ",'" + ((item.SwitchType == "Blinds Inverted") ? 'Off' : 'On') + "'," + Device.switchFunction + ',' + this.protected + ');';
13141312
if (item.SwitchType == "Blinds Percentage") {
13151313
this.haveDimmer = true;
13161314
this.image2 = '';

0 commit comments

Comments
 (0)