From 5a471e2922bc39d9a7f540fdc005a3704b40c5d8 Mon Sep 17 00:00:00 2001 From: risiko79 <> Date: Sat, 8 Oct 2016 15:21:43 +0000 Subject: [PATCH] 98_weekprofile: fix device name with dots topic,46117.msg500338 git-svn-id: https://svn.fhem.de/fhem/trunk@12297 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb_weekprofile.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fhem/www/pgm2/fhemweb_weekprofile.js b/fhem/www/pgm2/fhemweb_weekprofile.js index 3f43f0492..d789b0c72 100644 --- a/fhem/www/pgm2/fhemweb_weekprofile.js +++ b/fhem/www/pgm2/fhemweb_weekprofile.js @@ -525,7 +525,7 @@ function FW_weekprofileEditDay(widget,day) $(div).append(html); var table = $("").get(0); - $(table).attr('id',"weekprofile."+widget.DEVICE+"."+shortDays[day]); + $(table).attr('id',"weekprofile."+widget.DEVICE).attr("data-day", shortDays[day]); $(table).attr('class',"block wide weekprofile"); html = ''; @@ -621,8 +621,7 @@ function FW_weekprofilePrepAndSendProf(devName) return; } - var id = $(tableDay[i]).attr('id').split('.'); - var day = id[id.length-1]; + var day = $(tableDay[i]).data("day"); prf[day] = new Object(); prf[day]['time'] = new Array();