Skip to content
Permalink
Browse files

Tabs: Added tab hover and focus support. For #3651 Update markup to n…

…ew UI CSS Framework specs
  • Loading branch information
rdworth committed Dec 23, 2008
1 parent ba704e3 commit 723782d80c097ba2798291d43a6c8c0c018c1c85
Showing with 18 additions and 0 deletions.
  1. +18 −0 ui/ui.tabs.js
@@ -78,6 +78,24 @@ $.widget("ui.tabs", {

var self = this, o = this.options;

this.$lis
.hover(
function() {
$(this).addClass('ui-state-hover');
},
function() {
$(this).removeClass('ui-state-hover');
}
);

this.$tabs
.focus(function() {
$(this).parent().addClass('ui-state-focus');
})
.blur(function() {
$(this).parent().removeClass('ui-state-focus');
})

this.$tabs.each(function(i, a) {
// inline tab
if (a.hash && a.hash.replace('#', '')) // Safari 2 reports '#' for an empty hash

0 comments on commit 723782d

Please sign in to comment.
You can’t perform that action at this time.