diff options
-rw-r--r-- | ui/ui.tabs.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js index e31747da2..49b7eb4b8 100644 --- a/ui/ui.tabs.js +++ b/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 |