AWC-1095: UI issues with OpenSearch sidebar component

Added missing string from properties file as reported on forums

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4962 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2007-01-30 12:00:15 +00:00
parent c68cf150b4
commit fc074b48f8
4 changed files with 43 additions and 5 deletions

View File

@@ -99,6 +99,30 @@ public class UIOpenSearch extends SelfRenderingComponent
out.write("</script>\n");
// write out the HTML
String styleClass = (String)this.getAttributes().get("styleClass");
String style = (String)this.getAttributes().get("style");
if (styleClass != null || style != null)
{
out.write("<div");
if (styleClass != null && styleClass.length() > 0)
{
out.write(" class='");
out.write(styleClass);
out.write("'");
}
if (style != null && style.length() > 0)
{
out.write(" style='");
out.write(style);
out.write("'");
}
out.write(">\n");
}
out.write("<div class='osPanel'><div class='osControls'>");
out.write("<table border='0' cellpadding='2' cellspacing='0'><tr>");
out.write("<td><input id='");
@@ -160,6 +184,11 @@ public class UIOpenSearch extends SelfRenderingComponent
out.write("<div id='");
out.write(clientId);
out.write("-os-results'></div>\n</div>\n");
if (styleClass != null || style != null)
{
out.write("</div>\n");
}
}
/**