new colorpicker
This commit is contained in:
parent
8af6f28988
commit
ef83ebbcaf
12 changed files with 158 additions and 319 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue