github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 234
    • 26
  • Source
  • Commits
  • Network (26)
  • Graphs
  • Tree: 22ba931

click here to add a description

click here to add a homepage

  • Switch Branches (4)
    • bind
    • master
    • panel
    • tooltip
  • Switch Tags (15)
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Menu: skip over elements that aren't menu items.

Fixes #5188 - Refactor menu rendering for more customizing.
scottgonzalez (author)
Sat Mar 20 11:37:25 -0700 2010
commit  22ba931c395aa8859c0cc7a2cf08e7bb0027db78
tree    871652d6fd6d6dc8a3bfc512f068f512a5d7c4df
parent  65d8fa2b0cb8b96cf3e869481546ed22a19f98ff
M demos/autocomplete/categories.html 23 •••••
M ui/jquery.ui.autocomplete.js 6 ••••
0
demos/autocomplete/categories.html
...
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
...
19
20
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
23
24
0
@@ -19,29 +19,6 @@
0
   }
0
   </style>
0
   <script type="text/javascript">
0
-  $.extend( $.ui.menu.prototype, {
0
-    next: function() {
0
-      this.move("next", ".ui-menu-item:first");
0
-    },
0
-
0
-    previous: function() {
0
-      this.move("prev", ".ui-menu-item:last");
0
-    },
0
-
0
-    move: function(direction, edge) {
0
-      if (!this.active) {
0
-        this.activate(this.element.children(edge));
0
-        return;
0
-      }
0
-      var next = this.active[direction + "All"]('.ui-menu-item').eq( 0 );
0
-      if (next.length) {
0
-        this.activate(next);
0
-      } else {
0
-        this.activate(this.element.children(edge));
0
-      }
0
-    }
0
-  });
0
-
0
   $.widget("custom.catcomplete", $.ui.autocomplete, {
0
     _renderMenu: function( ul, items ) {
0
       var self = this,
0
ui/jquery.ui.autocomplete.js
...
391
392
393
394
 
395
396
397
398
 
399
400
401
...
411
412
413
414
 
415
416
417
...
391
392
393
 
394
395
396
397
 
398
399
400
401
...
411
412
413
 
414
415
416
417
0
@@ -391,11 +391,11 @@ $.widget("ui.menu", {
0
   },
0
 
0
   next: function(event) {
0
-    this.move("next", "li:first", event);
0
+    this.move("next", ".ui-menu-item:first", event);
0
   },
0
 
0
   previous: function(event) {
0
-    this.move("prev", "li:last", event);
0
+    this.move("prev", ".ui-menu-item:last", event);
0
   },
0
 
0
   first: function() {
0
@@ -411,7 +411,7 @@ $.widget("ui.menu", {
0
       this.activate(event, this.element.children(edge));
0
       return;
0
     }
0
-    var next = this.active[direction]();
0
+    var next = this.active[direction + "All"](".ui-menu-item").eq(0);
0
     if (next.length) {
0
       this.activate(event, next);
0
     } else {

Comments

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server