mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
OpenSearch results shown in the web-client now have an icon to pop-up the AJAX document preview panel for the item.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5878 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -467,7 +467,7 @@ Alfresco.OpenSearchClient.prototype =
|
||||
{
|
||||
if (link != null)
|
||||
{
|
||||
sb[sb.length] = "<a target='_new' href='";
|
||||
sb[sb.length] = "<a target='new' href='";
|
||||
sb[sb.length] = link;
|
||||
sb[sb.length] = "'>";
|
||||
}
|
||||
@@ -476,13 +476,22 @@ Alfresco.OpenSearchClient.prototype =
|
||||
{
|
||||
sb[sb.length] = "</a>";
|
||||
}
|
||||
var noderef = Alfresco.Dom.getElementTextByTagNameNS(elResult, "http://www.alfresco.org/opensearch/1.0/", "alf", "noderef");
|
||||
if (noderef != null)
|
||||
{
|
||||
sb[sb.length] = "<span onclick=\"AlfNodeInfoMgr.toggle('" + noderef + "',this);\">";
|
||||
sb[sb.length] = "<img src='" + getContextPath() + "/images/icons/popup.gif' class='popupImage' width='16' height='16' />";
|
||||
sb[sb.length] = "</span>";
|
||||
}
|
||||
}
|
||||
sb[sb.length] = "</div><div class='osResultSummary'>";
|
||||
sb[sb.length] = "</div>";
|
||||
if (summary != null)
|
||||
{
|
||||
sb[sb.length] = "<div class='osResultSummary'>";
|
||||
sb[sb.length] = summary;
|
||||
sb[sb.length] = "</div>";
|
||||
}
|
||||
sb[sb.length] = "</div></td></tr>";
|
||||
sb[sb.length] = "</td></tr>";
|
||||
}
|
||||
|
||||
// close the table
|
||||
|
Reference in New Issue
Block a user