Posted By

dcastella on 02/14/11


Tagged

menu disable Outlook sharepoint


Versions (?)

SharePoint - Ocultar sincronización con Outlook


 / Published in: JavaScript
 

  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  

You need to login to post a comment.