码迷,mamicode.com
首页 > 其他好文 > 详细

crm 4 隐藏自定义 toolbar

时间:2016-06-16 06:48:18      阅读:351      评论:0      收藏:0      [点我收藏+]

标签:

//隐藏指定title按钮
function hideISVButton(buttonTitle) {
  var comps = document.getElementsByTagName(‘li‘);
  for (var i = 0; i < comps.length; i++) {
    if (comps[i].title == buttonTitle)
    {
      comps[i].style.display = "none";
      break;
    }
  }
}

技术分享

 

 

隐藏其它的系统中自带的,先使用F12 找html中元素

 

The unsupported way of doing this could be 

1) Find HomePage.aspx in your crm server.
2) Open it in visual studio or any other editor.
3) Find the javascript code function window.onload() in the page.
4) Add the following code to it 

function window.onload()
{
    HandleBackButtonIssues(_currentTypeCode);
    
    // code to hide send deactivate option
  
 var deactiviateElement = document.getElementById(‘_MIdoActioncrmGrid2deactivate‘);
    if (deactiviateElement != null) {
        deactiviateElement.style.display = ‘none‘;
    }   
         
    // end of code
}
But remember it is unsupported !

 

crm 4 隐藏自定义 toolbar

标签:

原文地址:http://www.cnblogs.com/BinBinGo/p/5589641.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!