mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
use rgb part if color has more than 3 components
git-svn-id: https://svn.fhem.de/fhem/trunk@6089 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6fc44039e1
commit
f136794c5c
@ -7,6 +7,9 @@ FW_colorpickerUpdateLine(d)
|
||||
el = document.getElementById(name);
|
||||
|
||||
if(el) {
|
||||
if( d[1].length > 6 ) {
|
||||
d[1] = d[1].slice(0,6);
|
||||
}
|
||||
el.color.fromString(d[1]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user