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;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
  • 相关阅读:
    Android代码宏控制方案 【转】
    android 系统签名【转】
    linux中udev简单的用法-->【转】
    linux中udev简单的用法【转】
    linux udev 机制【转】
    SQL SERVER2008 存储过程、表、视图、函数的权限
    用友u8数据库表结构
    SqlServer 添加用户 添加角色 分配权限
    SP_attach_db 添加数据库文件
    数据库的创建和文件的修改
  • 原文地址:https://www.cnblogs.com/janmson/p/1445991.html
Copyright © 2011-2022 走看看