Fixes #28810: Color Picker broken in 4.5.2 ~in nada.gif path

[TFS Changeset #80614]
This commit is contained in:
starfighter83
2010-11-25 09:49:50 +00:00
parent 864a9ac94a
commit abb97482fe

View File

@@ -71,7 +71,7 @@ namespace umbraco.editorControls
_bgColor = "FFF";
base.Render(writer);
writer.WriteLine("<div style=\"clear:both;padding-top:5px\"><span id=\"" + this.ClientID + "holder\" style=\"border: 1px solid black; background-color: #" + _bgColor + "\"><img src=\"" + SystemDirectories.Umbraco + "/images/nada.gif\" width=\"15\" height=\"15\" border=\"0\" /></span>&nbsp; - ");
writer.WriteLine("<div style=\"clear:both;padding-top:5px\"><span id=\"" + this.ClientID + "holder\" style=\"border: 1px solid black; background-color: #" + _bgColor + "\"><img src=\"" + this.ResolveUrl(SystemDirectories.Umbraco) + "/images/nada.gif\" width=\"15\" height=\"15\" border=\"0\" /></span>&nbsp; - ");
foreach (object color in _colors)
{
@@ -79,7 +79,7 @@ namespace umbraco.editorControls
if (colorValue == "")
colorValue = "FFF";
writer.WriteLine("<span style=\"margin: 2px; border: 1px solid black; background-color: #" + color.ToString() + "\"><a href=\"javascript:void(0);\" onClick=\"document.forms[0]['" + this.ClientID + "'].value = '" + color.ToString() + "'; document.getElementById('" + this.ClientID + "holder').style.backgroundColor = '#" + colorValue + "'\"><img src=\"" + SystemDirectories.Umbraco + "/images/nada.gif\" width=\"15\" height=\"15\" border=\"0\" /></a></span>");
writer.WriteLine("<span style=\"margin: 2px; border: 1px solid black; background-color: #" + color.ToString() + "\"><a href=\"javascript:void(0);\" onClick=\"document.forms[0]['" + this.ClientID + "'].value = '" + color.ToString() + "'; document.getElementById('" + this.ClientID + "holder').style.backgroundColor = '#" + colorValue + "'\"><img src=\"" + this.ResolveUrl(SystemDirectories.Umbraco) + "/images/nada.gif\" width=\"15\" height=\"15\" border=\"0\" /></a></span>");
}
writer.WriteLine("</div>");