Skip to content
Permalink
Browse files

Menubar: on a single-button menubar, ignore reopening the same menu

  • Loading branch information
jzaefferer committed Mar 17, 2011
1 parent cb17d6d commit 80d6d358f235d89ff541bf3d1885a6708c463774
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/visual/menu/menubar.js
@@ -127,6 +127,10 @@ $.widget("ui.menubar", {
},

_open: function(event, menu) {
// on a single-button menubar, ignore reopening the same menu
if (this.active && this.active[0] == menu[0]) {
return;
}
// almost the same as _close above, but don't remove tabIndex
if (this.active) {
this.active.menu("closeAll").hide();

0 comments on commit 80d6d35

Please sign in to comment.
You can’t perform that action at this time.