diff options
author | kborchers <kris.borchers@gmail.com> | 2012-05-24 23:44:51 -0500 |
---|---|---|
committer | kborchers <kris.borchers@gmail.com> | 2012-05-24 23:45:12 -0500 |
commit | fe7ca1f1c3922a301169256ed0614c5529e40454 (patch) | |
tree | 815e4686d2821e80112c12feb62f3a51b198ea34 /tests/visual/menu | |
parent | f63bb4fbc4899dacee2e55784bafc59b4a829954 (diff) | |
download | jquery-ui-fe7ca1f1c3922a301169256ed0614c5529e40454.tar.gz jquery-ui-fe7ca1f1c3922a301169256ed0614c5529e40454.zip |
Menu: Better handling of divider elements and menu items without anchors.
Diffstat (limited to 'tests/visual/menu')
-rw-r--r-- | tests/visual/menu/menu.html | 51 |
1 files changed, 49 insertions, 2 deletions
diff --git a/tests/visual/menu/menu.html b/tests/visual/menu/menu.html index f92de61db..dd86a6e4b 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" ).menu({ + $( "#menu1, #menu2, #menu3, .menu4, #menu7" ).menu({ select: logger }); @@ -58,7 +58,6 @@ <li><a href="#">Ada</a></li> <li><a href="#">Adamsville</a></li> <li><a href="#">Addyston</a></li> - <li></li> <li> <a href="#">Delphi</a> <ul> @@ -257,6 +256,54 @@ </div> </div> +<h2>Inline with dividers and elements without anchors</h2> +<ul id="menu7"> + <li>Group 1</li> + <li class="ui-state-disabled"><a href="#">Aberdeen</a></li> + <li><a href="#">Ada</a></li> + <li><a href="#">Adamsville</a></li> + <li><a href="#">Addyston</a></li> + <li></li> + <li>Group 2</li> + <li> + <a href="#">Delphi</a> + <ul> + <li class="ui-state-disabled"><a href="#">Ada</a></li> + <li><a href="#">Saarland</a></li> + <li><a href="#">Salzburg</a></li> + </ul> + </li> + <li><a href="#">Saarland</a></li> + <li>---</li> + <li>Group 3</li> + <li> + <a href="#">Salzburg</a> + <ul> + <li> + <a href="#">Delphi</a> + <ul> + <li><a href="#">Ada</a></li> + <li> - </li> + <li><a href="#">Saarland</a></li> + <li>—</li> + <li><a href="#">Salzburg</a></li> + <li>–</li> + </ul> + </li> + <li> + <a href="#">Delphi</a> + <ul> + <li><a href="#">Ada</a></li> + <li><a href="#">Saarland</a></li> + <li><a href="#">Salzburg</a></li> + </ul> + </li> + <li><a href="#">Perch</a></li> + </ul> + </li> + <li class="ui-state-disabled"><a href="#">Amesville</a></li> +</ul> + <div style="position: absolute; top: 1em; right: 1em;"> Log: <div id="log" style="height: 400px; width: 300px; overflow: auto; border: 1px solid #000;"></div> |