diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2011-03-17 15:44:09 +0100 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2011-03-17 15:44:09 +0100 |
commit | 80d6d358f235d89ff541bf3d1885a6708c463774 (patch) | |
tree | 3ec0b0eae9ec4937e7208a421156e62803ec152c /tests | |
parent | cb17d6d209e8fa82c920042ce8407cd592c2e798 (diff) | |
download | jquery-ui-80d6d358f235d89ff541bf3d1885a6708c463774.tar.gz jquery-ui-80d6d358f235d89ff541bf3d1885a6708c463774.zip |
Menubar: on a single-button menubar, ignore reopening the same menu
Diffstat (limited to 'tests')
-rw-r--r-- | tests/visual/menu/menubar.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/visual/menu/menubar.js b/tests/visual/menu/menubar.js index 3f4dba723..40ac2819d 100644 --- a/tests/visual/menu/menubar.js +++ b/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(); |