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

mdupont’s picture

Status: Active » Closed (fixed)

This issue is no longer relevant, as it applies to a very old version. Closing.