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

fhemweb_iconRadio.js,fhemweb.iconButtons: fixed no icon color

git-svn-id: https://svn.fhem.de/fhem/trunk@15331 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Ellert 2017-10-27 20:27:32 +00:00
parent 7f953d5956
commit aa09b46784
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ FW_iconButtonsCreate(elName, devName, vArr, currVal, set, params, cmd)
var ico = vArr[ind*ipar+3];
var m = ico.match(/.*@(.*)/);
var uscol = m[1];
var uscol = m && m[1] ? m[1] : "";
if( uscol.match(/^[A-F0-9]{6}$/))
uscol = "#"+uscol;
$(val).find("span").attr( "unselectcolor",uscol);

View File

@ -75,7 +75,7 @@ FW_iconRadioCreate(elName, devName, vArr, currVal, set, params, cmd)
var ico = vArr[ind*ipar+3];
var m = ico.match(/.*@(.*)/);
var uscol = m[1];
var uscol = m && m[1] ? m[1] : "";
if( uscol.match(/^[A-F0-9]{6}$/))
uscol = "#"+uscol;
$(val).find("span").attr( "unselectcolor",uscol);