<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
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.