Hide "Send To" option in a documents context menu. Add CEWP on document library view page and the below script to it.
<script type="text/javascript">
_spBodyOnLoadFunctionNames.push("resetAddSendSubMenu()");
function resetAddSendSubMenu()
{
AddSendSubMenu = function (m,ctx) {};
}
</script>
It turned out to be very simple by doing this:
AddSendSubMenu = function (m,ctx) {}
< /script>
Read more: http://www.information-worker.nl/2009/09/02/remove-send-to-menu-option-in-sharepoint-document-library/#ixzz1nKqK3mrv
<script type="text/javascript">
_spBodyOnLoadFunctionNames.push("resetAddSendSubMenu()");
function resetAddSendSubMenu()
{
AddSendSubMenu = function (m,ctx) {};
}
</script>
It turned out to be very simple by doing this:
- Go to the document’s view url, for example: http://example.com/Documents/Forms/AllItems.aspx.
- If it is a web part page, edit the page and add a Content Editor web part. Otherwise you need to edit that page in SharePoint Designer.
- Open the source editor (not the rich editor) for the Content Editor web part, or open the code view (not the design view) of that particular page in SharePoint Designer.
- Either inside the web part or the code view, insert the following script:
AddSendSubMenu = function (m,ctx) {}
< /script>
Read more: http://www.information-worker.nl/2009/09/02/remove-send-to-menu-option-in-sharepoint-document-library/#ixzz1nKqK3mrv
No comments:
Post a Comment