Ajax pop-up summary panels used for nodes in portlet templates now have own template which launches into different window

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5629 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-05-04 15:26:15 +00:00
parent 96b61f3ac7
commit 3c1db37e0c
4 changed files with 98 additions and 4 deletions

View File

@@ -13,10 +13,11 @@ var _zIndex = 99;
* @param serverCall Server call to make on display e.g. NodeInfoBean.sendNodeInfo
* @param argName Argument name to pass panel ID object as e.g. nodeRef
*/
Alfresco.PanelManager = function(serverCall, argName)
Alfresco.PanelManager = function(serverCall, argName, template)
{
this.serverCall = serverCall;
this.argName = argName;
this.template = template;
}
/**
@@ -29,6 +30,7 @@ Alfresco.PanelManager.prototype =
displayed: [],
serverCall: null,
argName: null,
template: null,
/**
* Request toggle of the open/close state of an info panel
@@ -122,7 +124,8 @@ Alfresco.InfoPanel.prototype =
failure: handleErrorYahoo, // global error handler
argument: [this]
},
this.manager.argName + "=" + this.id);
this.manager.argName + "=" + this.id +
(this.manager.template != null ? ("&template=" + this.manager.template) : ""));
}
else
{