r1227 - trunk/ui
r1227 - trunk/ui
Author: rdworth
Date: Tue Dec 23 00:00:59 2008
New Revision: 1227
Modified:
trunk/ui/ui.tabs.js
Log:
Tabs: Added tab hover and focus support. For #3651 Update markup to new UI
CSS Framework specs
Modified: trunk/ui/ui.tabs.js
==============================================================================
--- trunk/ui/ui.tabs.js (original)
+++ trunk/ui/ui.tabs.js Tue Dec 23 00:00:59 2008
@@ -78,6 +78,24 @@
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