Tabs: removed Safari 2 workaround, no longer supported

This commit is contained in:
Klaus Hartl 2009-01-25 23:47:40 +00:00
parent a7c0141875
commit 0162350192

View File

@ -439,14 +439,7 @@ $.widget("ui.tabs", {
if ($.inArray(index, o.disabled) == -1) if ($.inArray(index, o.disabled) == -1)
return; return;
var $li = this.$lis.eq(index).removeClass('ui-state-disabled'); 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);
}
o.disabled = $.grep(o.disabled, function(n, i) { return n != index; }); o.disabled = $.grep(o.disabled, function(n, i) { return n != index; });
// callback // callback