mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs: removed Safari 2 workaround, no longer supported
This commit is contained in:
parent
a7c0141875
commit
0162350192
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user