zoukankan      html  css  js  c++  java
  • crm 4 隐藏自定义 toolbar

    //隐藏指定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 !
  • 相关阅读:
    autofac meta
    RazorEngine 3.6.5.0
    pfx 转 snk
    git
    Nlog Layout
    NLog 传递参数
    扫描.net dll引用dll
    vbox android x86 分辨率
    Andriod x86 4,4
    .net cli 源码
  • 原文地址:https://www.cnblogs.com/BinBinGo/p/5589641.html
Copyright © 2011-2022 走看看