Bug Tracker

Changeset 5641

Show
Ignore:
Timestamp:
05/20/08 02:53:23 (8 months ago)
Author:
scott.gonzalez
Message:

UI Tabs: Fixed #2883: Add the panel css class to new tabs if the panel already exists in the DOM.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.tabs.js

    r5619 r5641  
    331331            if (!$panel.length) { 
    332332                $panel = $(o.panelTemplate).attr('id', id) 
    333                     .addClass(o.panelClass).addClass(o.hideClass); 
    334                 $panel.data('destroy.tabs', true); 
    335             } 
     333                    .addClass(o.hideClass) 
     334                    .data('destroy.tabs', true); 
     335            } 
     336            $panel.addClass(o.panelClass); 
    336337            if (index >= this.$lis.length) { 
    337338                $li.appendTo(this.element);