We have added code to function AddDocLibMenuItems(m, ctx) in ows.js
in order to add "send mail" menu item to document lib menu. This
works for documents but if we perform action on folder it returns:
"javascript:SubmitFormPost() " as the URL.
Any suggestions? Thanks.
code:
strDisplayText = L_sendmail_Text;
// parse the URL out of the itemTable
var URL = "";
var index = itemTable.innerHTML.indexOf("href=");
if (index > 0)
{
var str = itemTable.innerHTML.substr(index + 6);
index = str.indexOf('"');
if (index > 0)
{
URL = str.substr(0, index);
}
}
strAction = "SendMail('" + URL + "')";
strImagePath = ctx.imagesPath + "ICMSG.gif";
CAMOpt(m, strDisplayText, strAction, strImagePath);
Do you know someone who can help? Share a link to this thread on twitter, or facebook.