mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -1450,6 +1450,7 @@ error_export_all=Please correct the export errors below then click OK.
|
||||
error_save_search=Failed to save search due to error: {0}
|
||||
error_restore_search=Failed to restore saved search due to error: {0}
|
||||
error_shortcut_permissions=Unable to navigate to the item as it cannot be read by this user. Another user may have modified the permission.
|
||||
error_association=Failed to find association definition for association \"{0}\".
|
||||
|
||||
# Confirmations
|
||||
return_to_application=Return to application
|
||||
|
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1624,6 +1624,18 @@
|
||||
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>style</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>styleClass</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
|
@@ -19,8 +19,4 @@
|
||||
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
|
||||
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
|
||||
|
||||
<f:verbatim><div class="osSidebarPanel"></f:verbatim>
|
||||
|
||||
<r:openSearch id="sidebarOsClient" />
|
||||
|
||||
<f:verbatim></div></f:verbatim>
|
||||
<r:openSearch id="sidebarOsClient" styleClass="osSidebarPanel" />
|
Reference in New Issue
Block a user