Tabs: fixed duration for show animation - setting wasn't considered

This commit is contained in:
Klaus Hartl 2009-02-04 20:46:54 +00:00
parent fac375df3b
commit b81731dd76

View File

@ -230,7 +230,7 @@ $.widget("ui.tabs", {
var showTab = showFx ?
function(clicked, $show) {
$show.hide().removeClass('ui-tabs-hide') // avoid flicker that way
.animate(showFx, 500, function() {
.animate(showFx, showFx.duration || 'normal', function() {
resetStyle($show, showFx);
self._trigger('show', null, self._ui(clicked, $show[0]));
});