2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

98_weekprofile: fix send data of one day to an other day 46117.msg512879

git-svn-id: https://svn.fhem.de/fhem/trunk@12477 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
risiko79 2016-10-31 12:49:30 +00:00
parent fb82921aa2
commit 33d42bd61b

View File

@ -481,8 +481,8 @@ function FW_weekprofileEditDelInterval(tr)
function FW_weekprofileTransDay(devName,day,bnt)
{
var widget = $('div[informid="'+devName+'"]').get(0)
var srcDay = $(widget.CONTENT).find("table[id*=\"weekprofile."+widget.DEVICE+"."+shortDays[day]+"\"]");
var widget = $('div[informid="'+devName+'"]').get(0);
var srcDay = $(widget.CONTENT).find("table[id*=\"weekprofile."+widget.DEVICE+"\"][data-day*=\""+shortDays[day]+"\"]");
var dayNames = [];
var dayAlias = [];
@ -498,7 +498,7 @@ function FW_weekprofileTransDay(devName,day,bnt)
if (!selDays || selDays.length==0)
return;
for (var k=0; k < selDays.length; k++) {
var destDay = $(widget.CONTENT).find("table[id*=\"weekprofile."+widget.DEVICE+"."+selDays[k]+"\"]");
var destDay = $(widget.CONTENT).find("table[id*=\"weekprofile."+widget.DEVICE+"\"][data-day*=\""+selDays[k]+"\"]");
destDay.empty();
destDay.append(srcDay.clone().contents());
}
@ -621,8 +621,8 @@ function FW_weekprofilePrepAndSendProf(devName)
return;
}
var day = $(tableDay[i]).data("day");
var day = $(tableDay[i]).attr("data-day");
prf[day] = new Object();
prf[day]['time'] = new Array();
prf[day]['temp'] = new Array();