Skip to content

Commit

Permalink
Tabs: removed Safari 2 workaround, no longer supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Hartl committed Jan 25, 2009
1 parent a7c0141 commit 0162350
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions ui/ui.tabs.js
Expand Up @@ -439,14 +439,7 @@ $.widget("ui.tabs", {
if ($.inArray(index, o.disabled) == -1)
return;

var $li = this.$lis.eq(index).removeClass('ui-state-disabled');
if ($.browser.safari) { // fix disappearing tab (that used opacity indicating disabling) after enabling in Safari 2...
$li.css('display', 'inline-block');
setTimeout(function() {
$li.css('display', 'block');
}, 0);
}

this.$lis.eq(index).removeClass('ui-state-disabled');
o.disabled = $.grep(o.disabled, function(n, i) { return n != index; });

// callback
Expand Down

0 comments on commit 0162350

Please sign in to comment.