• 将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;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
  • 相关阅读:
    二叉树知识拓展
    【2014年鄞州区】小幸福(e.pas/c/cpp)
    【2017年常州市】小X与队列 (queue)
    【2018年南海区甲组】扑克游戏(poker)
    【2018年南海区甲组】拆除桥墩(remove)
    【NOIP普及组模拟赛3】投影(skyline)
    常用正则表达式
    asp.net访问母版页控件方法
    C#文件读写操作
    C#读取csv格式文件
  • 原文地址:https://www.cnblogs.com/janmson/p/1445991.html
Copyright © 2020-2023  润新知