new colorpicker

This commit is contained in:
Graham Knop 2008-03-04 21:35:03 +00:00
parent 8af6f28988
commit ef83ebbcaf
12 changed files with 158 additions and 319 deletions

View file

@ -129,7 +129,8 @@ WebguiStyleDesigner = function () {
swatch.style.backgroundColor = field.value;
swatch.onclick = function () {
var id = this.id.replace(/(\w+)_swatch/,"$1");
WebguiColorPicker.display(id);
YAHOO.WebGUI.Form.ColorPicker.display(id, this.id);
return false;
}
field.onchange = function () {
Dom.get(this.id+"_swatch").style.backgroundColor = this.value;