• 将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;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
  • 相关阅读:
    poj 3264 Balanced Lineup(st/线段树)
    Linux下的硬件驱动——USB设备(下)
    linux-2.6.14下USB驱动移植心得
    Linux下的硬件驱动——USB设备(上)
    在menuconfig中配置Linux内核裁剪的具体步骤
    Linux-2.6.32.2内核在mini2440上的移植(十)---配置USB外设
    ubuntu12.04下NFS安装
    make menuconfig时提示“error opening terminal”的解决方法
    linux系统日志编程
    socat用法
  • 原文地址:https://www.cnblogs.com/janmson/p/1445991.html
Copyright © 2020-2023  润新知