File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ <h2>Widgets</h2>
46
46
< a href ="menu/menu.html "> Menu</ a >
47
47
< ul >
48
48
< li > < a href ="menu/contextmenu.html "> Context Menu</ a > </ li >
49
- < li > < a href ="menu/nested.html "> Nested Menu</ a > </ li >
49
+ < li > < a href ="menu/flyoutmenu.html "> Flyout Menu</ a > </ li >
50
+ < li > < a href ="menu/menubar.html "> Menubar</ a > </ li >
50
51
< li > < a href ="menu/drilldown.html "> Drilldown Menu</ a > </ li >
51
52
</ ul >
52
53
</ li >
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
/*
2
- * jQuery UI flyout menu
3
- * - written for jQuery UI 1.9 milestone 2 using the widget factory
4
- * Dual licensed under the MIT (MIT-LICENSE.txt)
5
- * and GPL (GPL-LICENSE.txt) licenses.
6
- *
7
- * modified from: http://view.jqueryui.com/menu/tests/visual/menu/nested.html
8
- * by: Michael Lang, http://nexul.com/
2
+ * jQuery UI flyoutmenu
9
3
*
4
+ * backported from Michael Lang's fork: http://www.nexul.com/prototypes/toolbar/demo.html
10
5
*/
11
6
( function ( $ ) {
12
7
@@ -64,11 +59,13 @@ $.widget("ui.flyoutmenu", {
64
59
return value . replace ( / [ - [ \] { } ( ) * + ? . , \\ ^ $ | # \s ] / g, "\\$&" ) ;
65
60
}
66
61
var match = self . activeItem . parent ( "ul" ) . children ( "li" ) . filter ( function ( ) {
62
+ // TODO why filter child anchor here, but not in the filter below?
67
63
return new RegExp ( "^" + escape ( character ) , "i" ) . test ( $ ( "a" , this ) . text ( ) ) ;
68
64
} ) ;
69
65
var match = skip && match . index ( self . active . next ( ) ) != - 1 ? match . next ( ) : match ;
70
66
if ( ! match . length ) {
71
67
character = String . fromCharCode ( event . keyCode ) ;
68
+ // TODO why use self.widget() here instead of self.activeItem??
72
69
match = self . widget ( ) . children ( "li" ) . filter ( function ( ) {
73
70
return new RegExp ( "^" + escape ( character ) , "i" ) . test ( $ ( this ) . text ( ) ) ;
74
71
} ) ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * jQuery UI flyout menu
3
- * - written for jQuery UI 1.9 milestone 2 using the widget factory
4
- *
5
- * Copyright (c) 2010 Michael Lang, http://nexul.com/
6
- * Dual licensed under the MIT (MIT-LICENSE.txt)
7
- * and GPL (GPL-LICENSE.txt) licenses.
2
+ * jQuery UI menubar
8
3
*
4
+ * backported from Michael Lang's fork: http://www.nexul.com/prototypes/toolbar/demo.html
9
5
*/
10
6
( function ( $ ) {
11
7
You can’t perform that action at this time.
0 commit comments