myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r887938 - /myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js
Date Mon, 07 Dec 2009 14:52:15 GMT
Author: lofwyr
Date: Mon Dec  7 14:52:14 2009
New Revision: 887938

URL: http://svn.apache.org/viewvc?rev=887938&view=rev
Log:
TOBAGO-832: Ignore Seperators while cursor navigation

Modified:
    myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js?rev=887938&r1=887937&r2=887938&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js
(original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js
Mon Dec  7 14:52:14 2009
@@ -44,7 +44,7 @@
       if ($(this).parent().hasClass('tobago-menu-top')) {
         // nothing
       } else {
-        $(this).parent().prevAll('li:first').children('a').focus();
+        $(this).parent().prevAll('li').children('a')[0].focus();
       }
       handled = true;
       break;
@@ -62,7 +62,7 @@
       if ($(this).parent().hasClass('tobago-menu-top')) {
         $(this).next('ol').children(":nth-child(1)").children('a').focus();
       } else {
-        $(this).parent().nextAll('li:first').children('a').focus();
+        $(this).parent().nextAll('li').children('a')[0].focus();
       }
       handled = true;
       break;



Mime
View raw message