From ea8815cbe94591b002073115285013723b51e1a6 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 22 Jan 2013 16:22:27 +0000 Subject: [PATCH] Make readings read git-svn-id: https://svn.fhem.de/fhem/trunk@2550 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb.js | 5 ++++- fhem/www/pgm2/style.css | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index 83c6794b7..134a6c175 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -41,9 +41,12 @@ FW_doUpdate() if(el.options[j].value == d[2]) { el.selectedIndex = j; } - } else { + } else { el.innerHTML=d[2]; + if(d[0].indexOf("-") >= 0) // readings / timestamps + el.setAttribute('class', 'changed'); + } } } diff --git a/fhem/www/pgm2/style.css b/fhem/www/pgm2/style.css index 7f72b28cb..93abb749a 100644 --- a/fhem/www/pgm2/style.css +++ b/fhem/www/pgm2/style.css @@ -39,6 +39,7 @@ select { margin-left:5px; margin-right:5px; } .set .slider { background:#F0F0D8; border-radius:8px; } /* timepicker */ .set .set { margin-bottom:2px; margin-top:3px; } +.changed { color:red; } .handle { position:relative; cursor:pointer; width:50px; height:20px; line-height:20px; user-select:none;