aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-11-13 03:18:55 +0000
committerScott González <scott.gonzalez@gmail.com>2009-11-13 03:18:55 +0000
commit18e256849cad7b0d439fd044b5693bbabe3cd946 (patch)
treef84a73c6d662655d51dd482e9878b8f8723e4924
parentef02b168ef7abe243ae25b60bb20c6268f8198aa (diff)
downloadjquery-ui-18e256849cad7b0d439fd044b5693bbabe3cd946.tar.gz
jquery-ui-18e256849cad7b0d439fd044b5693bbabe3cd946.zip
Tabs: Never remove the ui-state-default class when switching tabs.
Fixes #4815 - Tabs: each tab needs to have state ui-state-default.
-rw-r--r--ui/jquery.ui.tabs.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 34b7daf1c..15bb282d7 100644
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -273,7 +273,7 @@ $.widget("ui.tabs", {
// Show a tab...
var showTab = showFx ?
function(clicked, $show) {
- $(clicked).closest('li').removeClass('ui-state-default').addClass('ui-tabs-selected ui-state-active');
+ $(clicked).closest('li').addClass('ui-tabs-selected ui-state-active');
$show.hide().removeClass('ui-tabs-hide') // avoid flicker that way
.animate(showFx, showFx.duration || 'normal', function() {
resetStyle($show, showFx);
@@ -281,7 +281,7 @@ $.widget("ui.tabs", {
});
} :
function(clicked, $show) {
- $(clicked).closest('li').removeClass('ui-state-default').addClass('ui-tabs-selected ui-state-active');
+ $(clicked).closest('li').addClass('ui-tabs-selected ui-state-active');
$show.removeClass('ui-tabs-hide');
self._trigger('show', null, self._ui(clicked, $show[0]));
};
@@ -290,14 +290,14 @@ $.widget("ui.tabs", {
var hideTab = hideFx ?
function(clicked, $hide) {
$hide.animate(hideFx, hideFx.duration || 'normal', function() {
- self.lis.removeClass('ui-tabs-selected ui-state-active').addClass('ui-state-default');
+ self.lis.removeClass('ui-tabs-selected ui-state-active');
$hide.addClass('ui-tabs-hide');
resetStyle($hide, hideFx);
self.element.dequeue("tabs");
});
} :
function(clicked, $hide, $show) {
- self.lis.removeClass('ui-tabs-selected ui-state-active').addClass('ui-state-default');
+ self.lis.removeClass('ui-tabs-selected ui-state-active');
$hide.addClass('ui-tabs-hide');
self.element.dequeue("tabs");
};