mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. First pass of the Saved Searches functionality for the web-client
. Saved Searches bootstrap folder . Document details and Space details page now show a copy-and-paste NodeRef link . Minor bug fixes to Breadcrumb and ActionLink components git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2104 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -158,10 +158,10 @@ public class ActionLinkRenderer extends BaseRenderer
|
||||
linkBuf.append(" class=")
|
||||
.append(attrs.get("styleClass"));
|
||||
}
|
||||
if (attrs.get("tooltip") != null)
|
||||
if (link.getTooltip() != null)
|
||||
{
|
||||
linkBuf.append(" title=\"")
|
||||
.append(Utils.encode((String)attrs.get("tooltip")))
|
||||
.append(Utils.encode(link.getTooltip()))
|
||||
.append('"');
|
||||
}
|
||||
linkBuf.append('>');
|
||||
@@ -266,10 +266,8 @@ public class ActionLinkRenderer extends BaseRenderer
|
||||
}
|
||||
buf.append(">");
|
||||
|
||||
Map attrs = link.getAttributes();
|
||||
|
||||
// render text link cell for the menu
|
||||
if (attrs.get("href") == null)
|
||||
if (link.getHref() == null)
|
||||
{
|
||||
buf.append("<a href='#' onclick=\"");
|
||||
buf.append(Utils.generateFormSubmit(context, link, Utils.getActionHiddenFieldName(context, link), link.getClientId(context), getParameterMap(link)));
|
||||
@@ -277,7 +275,7 @@ public class ActionLinkRenderer extends BaseRenderer
|
||||
}
|
||||
else
|
||||
{
|
||||
String href = (String)attrs.get("href");
|
||||
String href = link.getHref();
|
||||
if (href.startsWith("http") == false)
|
||||
{
|
||||
href = context.getExternalContext().getRequestContextPath() + href;
|
||||
@@ -295,6 +293,7 @@ public class ActionLinkRenderer extends BaseRenderer
|
||||
}
|
||||
}
|
||||
|
||||
Map attrs = link.getAttributes();
|
||||
if (attrs.get("style") != null)
|
||||
{
|
||||
buf.append(" style=\"")
|
||||
|
@@ -108,7 +108,7 @@ public class BreadcrumbRenderer extends BaseRenderer
|
||||
if (first == false)
|
||||
{
|
||||
buf.append(' ')
|
||||
.append(bc.getSeparator())
|
||||
.append(Utils.encode(bc.getSeparator()))
|
||||
.append(' ');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user