rem: dialog.ColorPreview.setAttribute(bgcolorStr,color); 
add:  styleValue = colorStyle+color; if (dialog.backgroundImage > 0) { styleValue += ";"+backImageStyle+backImageStyle+";"; } dialog.ColorPreview.setAttribute(styleStr,styleValue); 
context: function SetColor(ColorWellID, color){  switch( ColorWellID )  {    case "textCW":      if (!color) color = defaultTextColor;      dialog.textColor = color;      dialog.NormalText.setAttribute(styleStr,colorStyle+color);      break;    case "linkCW":      if (!color) color = defaultLinkColor;      dialog.linkColor = color;      dialog.LinkText.setAttribute(styleStr,colorStyle+color);      break;    case "activeCW":      if (!color) color = defaultLinkColor;      dialog.activeLinkColor = color;      dialog.ActiveLinkText.setAttribute(styleStr,colorStyle+color);      break;    case "visitedCW":      if (!color) color = defaultVisitedLinkColor;      dialog.visitedLinkColor = color;      dialog.VisitedLinkText.setAttribute(styleStr,colorStyle+color);      break;    case "backgroundCW":      if (!color) color = defaultBackgroundColor;      dialog.backgroundColor = color;      dialog.ColorPreview.setAttribute(bgcolorStr,color);      break;  }  setColorWell(ColorWellID, color); }
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/55e2ac48d1fb48ad8a914b30500b323d66968a41/EdColorProps.js/buggy/editor/ui/dialogs/content/EdColorProps.js