Closed (fixed)
Project:
Style
Version:
4.3.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2004 at 07:04 UTC
Updated:
31 Mar 2009 at 10:55 UTC
As coded in 4.3.0, the Javascript setColor function used on the color picker page is:
function setColor(val) {
document.forms[0].elements[0].value = val;
color = val;
}
Unfortunately this assumes that there's only one form on the page. If, as I do, there is a search box in a form at the top of the page built into the template (maybe a bad idea?), it incorrectly fills in that box with the color selected.
I wish I could give you the fix as well as the bug, but its been a couple of years. (Something about giving the form an ID or Name and then searching directly for that GetElementbyID maybe?).
thanks for this module!
Comments
Comment #1
mdupontThis issue is no longer relevant, as it applies to a very old version. Closing.