src/main/webapp/jquery-easyui-1.3.3/src/jquery.tabs.js
/**
     * wrap the tabs header and body
     */
wrap the tabs header and body
wrap the tabs header and body
function wrapTabs(container) {
        var tabs = $.data(container, 'tabs').tabs;
        var cc = $(container);
        cc.addClass('tabs-container');
        cc.wrapInner('<div class="tabs-panels"/>');
        $('<div class="tabs-header">'
            + '<div class="tabs-scroller-left"></div>'
            + '<div class="tabs-scroller-right"></div>'
            + '<div class="tabs-wrap">'
            + '<ul class="tabs"></ul>'
            + '</div>'
            + '</div>').prependTo(container);
        cc.children('div.tabs-panels').children('div').each(function (i) {
            var opts = $.extend({}, $.parser.parseOptions(this), {
                selected: ($(this).attr('selected') ? true : undefined)
            });
            var pp = $(this);
            tabs.push(pp);
            createTab(container, pp, opts);
        });
        cc.children('div.tabs-header').find('.tabs-scroller-left, .tabs-scroller-right').hover(
            function () {
                $(this).addClass('tabs-scroller-over');
            },
            function () {
                $(this).removeClass('tabs-scroller-over');
            }
        );
        cc.bind('_resize', function (e, force) {
            var opts = $.data(container, 'tabs').options;
            if (opts.fit == true || force) {
                setSize(container);
                setSelectedSize(container);
            }
            return false;
        });
    }
function wrapTabs ( container ) { var tabs = $ . data ( container , 'tabs' ) . tabs ; var cc = $ ( container ) ; cc . addClass ( 'tabs-container' ) ; cc . wrapInner ( '<div class="tabs-panels"/>' ) ; $ ( '<div class="tabs-header">' + '<div class="tabs-scroller-left"></div>' + '<div class="tabs-scroller-right"></div>' + '<div class="tabs-wrap">' + '<ul class="tabs"></ul>' + '</div>' + '</div>' ) . prependTo ( container ) ; cc . children ( 'div.tabs-panels' ) . children ( 'div' ) . each ( function ( i ) { var opts = $ . extend ( { } , $ . parser . parseOptions ( this ) , { selected : ( $ ( this ) . attr ( 'selected' ) ? true : undefined ) } ) ; var pp = $ ( this ) ; tabs . push ( pp ) ; createTab ( container , pp , opts ) ; } ) ; cc . children ( 'div.tabs-header' ) . find ( '.tabs-scroller-left, .tabs-scroller-right' ) . hover ( function ( ) { $ ( this ) . addClass ( 'tabs-scroller-over' ) ; } , function ( ) { $ ( this ) . removeClass ( 'tabs-scroller-over' ) ; } ) ; cc . bind ( '_resize' , function ( e , force ) { var opts = $ . data ( container , 'tabs' ) . options ; if ( opts . fit == true || force ) { setSize ( container ) ; setSelectedSize ( container ) ; } return false ; } ) ; }
wrap the tabs header and body
wrap the tabs header and body