[dev] Change background in colorpicker.

David U. davidu@everydns.net
Mon, 16 Sep 2002 16:01:19 -0500


The update to the category color pref's were nice but I think it's better
when done "live" (after they pick a color)

As usual, this might not be the best place for it since it'll impact
anything else using colorpicker, obviously.

Index: colorpicker.php
===================================================================
RCS file: /repository/horde/util/colorpicker.php,v
retrieving revision 1.5
diff -p -r1.5 colorpicker.php
*** colorpicker.php     15 Aug 2002 08:52:41 -0000      1.5
--- colorpicker.php     16 Sep 2002 20:59:09 -0000
*************** function changeColor(color)
*** 35,40 ****
--- 35,42 ----
      }

      parent.opener.document.prefs["<?php echo Horde::getFormData("target")
?>"].value = color;
+     var input_element = parent.opener.document.getElementById("<?php echo
Horde::getFormData("target") ?>");
+     input_element.style.backgroundColor = color;

      this.close();
  }

-davidu

--
"Never doubt that a small group of thoughtful citizens can change the
world. Indeed, it is the only thing that ever has." --Margaret Mead