Skip to content

Commit 1bd0957

Browse files
committed
- Fixed: Changing device order when selected a Room in the lights/utility tab
1 parent 4bfe241 commit 1bd0957

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

History.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Version 2.3xxx
2525
- Fixed: Alert Sensor, displaying sValue again
2626
- Fixed: Blockly, Set user variables (you need to resave your blockly's)
2727
- Fixed: Blockly, string uservariables where saved with quotes when not using with set-after
28+
- Fixed: Changing device order when selected a Room in the lights/utility tab
2829
- Fixed: CM180i graph display
2930
- Fixed: Dummy RGB sensor creation (was created with wrong ID)
3031
- Fixed: Edit Light/Switch Security sensors protected checkbox

www/app/LightsController.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2304,8 +2304,12 @@ define(['app'], function (app) {
23042304
drop: function() {
23052305
var myid=$(this).attr("id");
23062306
$.devIdx.split(' ');
2307+
var roomid = $("#lightcontent #comboroom option:selected").val();
2308+
if (typeof roomid == 'undefined') {
2309+
roomid=0;
2310+
}
23072311
$.ajax({
2308-
url: "json.htm?type=command&param=switchdeviceorder&idx1=" + myid + "&idx2=" + $.devIdx,
2312+
url: "json.htm?type=command&param=switchdeviceorder&idx1=" + myid + "&idx2=" + $.devIdx + "&roomid=" + roomid,
23092313
async: false,
23102314
dataType: 'json',
23112315
success: function(data) {

www/app/UtilityController.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,8 +1355,12 @@ define(['app'], function (app) {
13551355
drop: function() {
13561356
var myid=$(this).attr("id");
13571357
$.devIdx.split(' ');
1358+
var roomid = $("#utilitycontent #comboroom option:selected").val();
1359+
if (typeof roomid == 'undefined') {
1360+
roomid=0;
1361+
}
13581362
$.ajax({
1359-
url: "json.htm?type=command&param=switchdeviceorder&idx1=" + myid + "&idx2=" + $.devIdx,
1363+
url: "json.htm?type=command&param=switchdeviceorder&idx1=" + myid + "&idx2=" + $.devIdx + "&roomid=" + roomid,
13601364
async: false,
13611365
dataType: 'json',
13621366
success: function(data) {

www/html5.appcache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# ref 1132
2+
# ref 1133
33

44
CACHE:
55
# CSS

0 commit comments

Comments
 (0)