Sha256: cf9d45473e4e9c9003f250b4cd4aeaaaf3a407cae8d0648aa7b5cf26f6d8cd0d

Contents?: true

Size: 1.52 KB

Versions: 11

Compression:

Stored size: 1.52 KB

Contents

/**
 * Created with JetBrains PhpStorm.
 * User: xuheng
 * Date: 12-9-26
 * Time: 下午1:06
 * To change this template use File | Settings | File Templates.
 */
/**
 * tab点击处理事件
 * @param tabHeads
 * @param tabBodys
 * @param obj
 */
function clickHandler( tabHeads,tabBodys,obj ) {
    //head样式更改
    for ( var k = 0, len = tabHeads.length; k < len; k++ ) {
        tabHeads[k].className = "";
    }
    obj.className = "focus";
    //body显隐
    var tabSrc = obj.getAttribute( "tabSrc" );
    for ( var j = 0, length = tabBodys.length; j < length; j++ ) {
        var body = tabBodys[j],
            id = body.getAttribute( "id" );
        body.onclick = function(){
            this.style.zoom = 1;
        };
        if ( id != tabSrc ) {
            body.style.zIndex = 1;
        } else {
            body.style.zIndex = 200;
        }
    }

}

/**
 * TAB切换
 * @param tabParentId  tab的父节点ID或者对象本身
 */
function switchTab( tabParentId ) {
    var tabElements = $G( tabParentId ).children,
        tabHeads = tabElements[0].children,
        tabBodys = tabElements[1].children;

    for ( var i = 0, length = tabHeads.length; i < length; i++ ) {
        var head = tabHeads[i];
        if ( head.className === "focus" )clickHandler(tabHeads,tabBodys, head );
        head.onclick = function () {
            clickHandler(tabHeads,tabBodys,this);
        }
    }
}
switchTab("helptab");

document.getElementById('version').innerHTML = parent.UE.version;

Version data entries

11 entries across 11 versions & 6 rubygems

Version Path
activeadmin_ueditor-0.2.0 public/assets/ueditor/dialogs/help/help.js
neditor_rails-0.1.0 vendor/assets/javascripts/neditor/dialogs/help/help.js
baidu_ueditor_rails5-0.3.1 app/assets/javascripts/ueditor/dialogs/help/help.js
baidu_ueditor_rails5-0.3.0 app/assets/javascripts/ueditor/dialogs/help/help.js
baidu_ueditor_rails-0.2.3 vendor/assets/javascripts/ueditor/dialogs/help/help.js
baidu_ueditor_rails-0.2.2 vendor/assets/javascripts/ueditor/dialogs/help/help.js
baidu_ueditor_rails-0.2.1 vendor/assets/javascripts/ueditor/dialogs/help/help.js
baidu_ueditor_rails-0.2.0 vendor/assets/javascripts/ueditor/dialogs/help/help.js
rails_ueditor-0.2.0 vendor/assets/javascripts/ueditor/dialogs/help/help.js
ueditor.rails-0.0.3 vendor/assets/javascripts/ueditor/dialogs/help/help.js
ueditor.rails-0.0.2 vendor/assets/javascripts/ueditor/dialogs/help/help.js