Skip to content
Permalink
Browse files

Tabs: always hide added panels, fixes #3875

  • Loading branch information...
Klaus Hartl
Klaus Hartl committed Jan 22, 2009
1 parent c5125ac commit 860203deb234f02391b38c3c40743aa01202ca1f
Showing with 2 additions and 4 deletions.
  1. +2 −4 ui/ui.tabs.js
@@ -381,11 +381,9 @@ $.widget("ui.tabs", {
// try to find an existing element before creating a new one
var $panel = $('#' + id);
if (!$panel.length) {
$panel = $(o.panelTemplate).attr('id', id)
.addClass('ui-tabs-hide')
.data('destroy.tabs', true);
$panel = $(o.panelTemplate).attr('id', id).data('destroy.tabs', true);
}
$panel.addClass('ui-tabs-panel ui-widget-content ui-corner-bottom');
$panel.addClass('ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide');
if (index >= this.$lis.length) {
$li.appendTo(this.list);
$panel.appendTo(this.list[0].parentNode);

0 comments on commit 860203d

Please sign in to comment.
You can’t perform that action at this time.