aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual
diff options
context:
space:
mode:
authorKris Borchers <kris.borchers@gmail.com>2013-09-24 23:46:59 -0500
committerKris Borchers <kris.borchers@gmail.com>2013-10-05 21:52:31 -0500
commit31e705ab324ec830062eee173a112551f7c919ea (patch)
treedffbb2580038f391baec35dc0bdf6309382397db /tests/visual
parente08791d2c1be7628b7fd6ca2398cff195cb2e2c2 (diff)
downloadjquery-ui-31e705ab324ec830062eee173a112551f7c919ea.tar.gz
jquery-ui-31e705ab324ec830062eee173a112551f7c919ea.zip
Menu: Add items option for better definition of menu items in non parent-child structures
Diffstat (limited to 'tests/visual')
-rw-r--r--tests/visual/menu/menu.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/visual/menu/menu.html b/tests/visual/menu/menu.html
index f25163d5f..1c203ef12 100644
--- a/tests/visual/menu/menu.html
+++ b/tests/visual/menu/menu.html
@@ -15,7 +15,7 @@
$( "<p>" ).text( "Selected: " + ui.item.text() ).appendTo( "#log" );
}
- $( "#menu1, #menu2, #menu3, .menu4, #menu7" ).menu({
+ $( "#menu1, #menu2, #menu3, .menu4" ).menu({
select: logger
});
@@ -29,6 +29,11 @@
select: logger,
icon: "ui-icon-carat-1-s"
});
+
+ $( "#menu7" ).menu({
+ items: "> :not('.ui-menu-group')",
+ select: logger
+ });
});
</script>
<style>
@@ -237,7 +242,7 @@
</div>
</div>
-<h2>Inline with dividers and elements without anchors</h2>
+<h2>Inline with dividers and group labels</h2>
<ul id="menu7">
<li class="ui-menu-group"><strong>Group 1</strong></li>
<li>Aberdeen</li>