diff options
author | kborchers <k_borchers@yahoo.com> | 2011-07-14 10:20:47 -0500 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-07-14 11:38:03 -0400 |
commit | 6d0859f71600c3776913f90a39e9cfe086454e11 (patch) | |
tree | 829554121dfff538677a9b0cf17c6316ddb016ad /ui/jquery.ui.menubar.js | |
parent | 11d24ee84cc29adf7349b08031146936cf4dd9a9 (diff) | |
download | jquery-ui-6d0859f71600c3776913f90a39e9cfe086454e11.tar.gz jquery-ui-6d0859f71600c3776913f90a39e9cfe086454e11.zip |
Menu: Changed closeAll to collapseAll and updated in Menubar, also updated a reference to left in Menubar to collapse.
Diffstat (limited to 'ui/jquery.ui.menubar.js')
-rw-r--r-- | ui/jquery.ui.menubar.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.menubar.js b/ui/jquery.ui.menubar.js index e28ea3e3c..fd6d92d6b 100644 --- a/ui/jquery.ui.menubar.js +++ b/ui/jquery.ui.menubar.js @@ -151,7 +151,7 @@ $.widget( "ui.menubar", { }); that._bind( { keydown: function( event ) { - if ( event.keyCode == $.ui.keyCode.ESCAPE && that.active && that.active.menu( "left", event ) !== true ) { + if ( event.keyCode == $.ui.keyCode.ESCAPE && that.active && that.active.menu( "collapse", event ) !== true ) { var active = that.active; that.active.blur(); that._close( event ); @@ -206,7 +206,7 @@ $.widget( "ui.menubar", { if ( !this.active || !this.active.length ) return; this.active - .menu( "closeAll" ) + .menu( "collapseAll" ) .hide() .attr( "aria-hidden", "true" ) .attr( "aria-expanded", "false" ); @@ -226,7 +226,7 @@ $.widget( "ui.menubar", { // TODO refactor, almost the same as _close above, but don't remove tabIndex if ( this.active ) { this.active - .menu( "closeAll" ) + .menu( "collapseAll" ) .hide() .attr( "aria-hidden", "true" ) .attr( "aria-expanded", "false" ); |