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:
parent
7f953d5956
commit
aa09b46784
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user