diff options
author | Richard Worth <rdworth@gmail.com> | 2008-12-23 08:00:59 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-12-23 08:00:59 +0000 |
commit | 723782d80c097ba2798291d43a6c8c0c018c1c85 (patch) | |
tree | 4cf1ee4bd738a2c58ece7f646330f02988a9a817 /ui | |
parent | ba704e3b71c85a6d8d083a2dc5bb108430206d6b (diff) | |
download | jquery-ui-723782d80c097ba2798291d43a6c8c0c018c1c85.tar.gz jquery-ui-723782d80c097ba2798291d43a6c8c0c018c1c85.zip |
Tabs: Added tab hover and focus support. For #3651 Update markup to new UI CSS Framework specs
Diffstat (limited to 'ui')
-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 |