SharePoint - Ocultar sincronización con Outlook


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script>
  2. function GetElementByText(tagName, title)
  3. {
  4. var a = document.getElementsByTagName(tagName);
  5. for (var j=0; j < a.length; j++)
  6. {
  7. //alert(a[j].id);
  8. if (a[j].id.indexOf(title)>0)
  9. {
  10. //alert('Entra');
  11. return a[j];
  12. }
  13. }
  14. return null;
  15. }
  16. function hideWinExp()
  17. {
  18. var n = GetElementByText("ie:menuitem","OfflineButton");
  19. if (n)
  20. {
  21. //alert('Entra 2');
  22. n.disabled = true;
  23. }
  24. }
  25. _spBodyOnLoadFunctionNames.push("hideWinExp");
  26. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.