use rgb part if color has more than 3 components
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6089 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user