zoukankan      html  css  js  c++  java
  • 将1:N关系的界面上"添加现有****"按钮隐藏掉

    /* Hide Button */
    HideAssociatedViewButton(
    'esp_quote_esp_shippingmark''Add existing Shipping Mark to this record');

    function HideAssociatedViewButton(loadAreaId, buttonTitle)
    {
        
    var navElement = document.getElementById('nav_' + loadAreaId);
        
    if (navElement != null)
        {
            navElement.onclick 
    = function LoadAreaOverride()
            {
                
    // Call the original method to launch the navigation link
                loadArea(loadAreaId);
                
                
    var associatedViewIFrame = document.getElementById(loadAreaId + 'Frame');
                
    if (associatedViewIFrame != null)
                {

                    associatedViewIFrame.onreadystatechange 
    = function HideTitledButton()
                    {
                        
    if (associatedViewIFrame.readyState == 'complete')
                        {
                    
                            
    var iFrame = frames[window.event.srcElement.id];
                            
    var liElements = iFrame.document.getElementsByTagName('li');
                            
    for (var i = 0; i < liElements.length; i++)
                            {
                                
                                
    if (liElements[i].getAttribute('title'== buttonTitle)
                                {
                                    liElements[i].style.display 
    = 'none';
                                    
    break;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
  • 相关阅读:
    约数个数 和 约数之和
    二分模板
    新生赛补题
    codefores刷题心得3 思维+dp(特别好玩)
    二叉树的遍历及例题
    团队作业七——团队作业分配
    WarPlane——游戏设计文档
    团队作业(五)
    团队作业(四)
    团队项目方案分析
  • 原文地址:https://www.cnblogs.com/janmson/p/1445991.html
Copyright © 2011-2022 走看看