2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

98_weekprofile: attribute widgetEditDaysInRow to control visible days in one row

git-svn-id: https://svn.fhem.de/fhem/trunk@10894 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
risiko79 2016-02-20 16:38:21 +00:00
parent 82fb97daad
commit eae144786d

View File

@ -571,6 +571,9 @@ function FW_weekprofileEditWeek(widget)
var table = widget.CONTENT;
var daysInRow = 2;
if (widget.EDIT_DAYSINROW)
daysInRow = widget.EDIT_DAYSINROW;
$(table).append('<tr>');
var tr = $(table).find("tr:last");
@ -789,10 +792,11 @@ FW_weekprofileCreate(elName, devName, vArr, currVal, set, params, cmd)
for (var i = 1; i < vArr.length; ++i) {
var arg = vArr[i].split(':');
switch (arg[0]) {
case "MODE": widget.MODE = arg[1]; break;
case "JMPBACK": widget.JMPBACK = arg[1]; break;
case "MASTERDEV": widget.MASTERDEV = arg[1]; break;
case "USETOPICS": widget.USETOPICS = arg[1]; break;
case "MODE": widget.MODE = arg[1]; break;
case "JMPBACK": widget.JMPBACK = arg[1]; break;
case "MASTERDEV": widget.MASTERDEV = arg[1]; break;
case "USETOPICS": widget.USETOPICS = arg[1]; break;
case "DAYINROW": widget.EDIT_DAYSINROW = arg[1]; break;
}
}