05-05-2009 02:47 PM
05-27-2009 02:19 PM
_resolvePreview: function WP__resolvePreview(event)
{
var ps = this.options.previews;
var webpreview = "webpreview", imgpreview = "imgpreview";
var nodeRefAsLink = this.options.nodeRef.replace(":/", "");
var argsNoCache = "?c=force&noCacheToken=" + new Date().getTime();
var preview, url;
if (this.options.mimeType.match(/^image\/\w+/))
{
/* Matched an image mimetype */
if(undefined===window.Alfresco.constants.ALF_TICKET){
url = Alfresco.constants.PROXY_URI + "api/node/" + nodeRefAsLink + "/content" + argsNoCache;
}
else
{
url = Alfresco.constants.PROXY_URI + "api/node/" + nodeRefAsLink + "/content" + argsNoCache + "&alf_ticket=" + Alfresco.constants.ALF_TICKET;
}
return (
{
url: url,
paging: false
});
}
else if (this.options.mimeType.match(/application\/x-shockwave-flash/))
{
if(undefined===window.Alfresco.constants.ALF_TICKET){
url = Alfresco.constants.PROXY_URI + "api/node/content/" + nodeRefAsLink + argsNoCache + "&a=true";
}
else
{
url = Alfresco.constants.PROXY_URI + "api/node/content/" + nodeRefAsLink + argsNoCache + "&a=true&alf_ticket=" + Alfresco.constants.ALF_TICKET;
}
return (
{
url: url,
paging: false
});
}
else
{
preview = Alfresco.util.arrayContains(ps, webpreview) ? webpreview : (Alfresco.util.arrayContains(ps, imgpreview) ? imgpreview : null);
if (preview != null)
{
if(undefined===window.Alfresco.constants.ALF_TICKET){
url = Alfresco.constants.PROXY_URI + "api/node/" + nodeRefAsLink + "/content/thumbnails/" + preview + argsNoCache;
}
else
{
url = Alfresco.constants.PROXY_URI + "api/node/" + nodeRefAsLink + "/content/thumbnails/" + preview + argsNoCache + "&alf_ticket=" + Alfresco.constants.ALF_TICKET;
}
return (
{
url: url,
paging: true
});
}
return null;
}
}
05-27-2009 02:38 PM
05-27-2009 02:44 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.