Самый простой способ заюзать ниже приведенный код создать Content Editor Web Part на требуемой странице и выбрав "Source Editor" добавьте код:
<script language="javascript">
function Custom_AddDocLibMenuItems(m, ctx)
{
var strDisplayText = "Say Hello World!";
var strAction = "alert('Hello World')";
var strImagePath = "";
// Add our new menu item
CAMOpt(m, strDisplayText, strAction, strImagePath);
// add a separator to the menu
CAMSep(m);
// false means that the standard menu items should also be rendered
return false;
}
</script>
Далее сохраняем это добро и идем проверять наличие пункта в бибдиотеку документов:
<script language="javascript">
function Custom_AddDocLibMenuItems(m, ctx)
{
var strDisplayText = "Say Hello World!";
var strAction = "alert('Hello World')";
var strImagePath = "";
// Add our new menu item
CAMOpt(m, strDisplayText, strAction, strImagePath);
// add a separator to the menu
CAMSep(m);
// false means that the standard menu items should also be rendered
return false;
}
</script>
Далее сохраняем это добро и идем проверять наличие пункта в бибдиотеку документов:
Комментариев нет:
Отправить комментарий