08-10-2011 09:50 AM
<input type="button" id="${args.htmlid}-more" name="${args.htmlid}-more" value="${msg("link.more")}"/>
<select id="${args.htmlid}-more-menu">
<option value="editSite">${msg("link.editSite")}</option>
<option value="customiseSite">${msg("link.customiseSite")}</option>
<option value="shareSite">${msg("link.shareSite")}</option>
<option value="leaveSite">${msg("link.leave")}</option>
</select>
// Create More menu
this.widgets.more = new YAHOO.widget.Button(this.id + "-more",
{
type: "menu",
menu: this.id + "-more-menu"
});
if (this.widgets.more.getMenu())
{
this.widgets.more.getMenu().subscribe("click", function (p_sType, p_aArgs)
{
var menuItem = p_aArgs[1];
if (menuItem)
{
switch(menuItem.value)
{
case "editSite":
Alfresco.module.getEditSiteInstance().show({shortName: this.options.site});
break;
case "customiseSite":
window.location = Alfresco.constants.URL_PAGECONTEXT + "site/" + this.options.site + "/customise-site";;
break;
case "shareSite":
Alfresco.module.getCreateSiteInstance().show();
break;
case "leaveSite":
var me = this;
Alfresco.util.PopupManager.displayPrompt(
{
title: me._msg("message.leave", me.options.site),
text: me._msg("message.leave-site-prompt", me.options.site),
buttons:
[
{
text: Alfresco.util.message("button.ok"),
handler: function leaveSite_onOk()
{
me.leaveSite(me.options.user, me.options.site);
this.destroy();
},
isDefault: true
},
{
text: Alfresco.util.message("button.cancel"),
handler: function leaveSite_onCancel()
{
this.destroy();
},
isDefault: false
}
]
});
break;
case "addToFav":
this.addAsFav(this.options.site);
break;
}
}
},this,true);
}
link.shareSite=Share Community
08-16-2011 04:25 AM
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.