aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2009-07-03 21:05:22 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2009-07-03 21:05:22 +0000
commitb6bdbb421177660c9f36cfbdb66430406f615427 (patch)
tree9820b98867a6844b352783692e38a1bd47755f74 /demos
parentcfe9a275c91124803f24417a97a1b4b8f6abaab5 (diff)
downloadjquery-ui-b6bdbb421177660c9f36cfbdb66430406f615427.tar.gz
jquery-ui-b6bdbb421177660c9f36cfbdb66430406f615427.zip
accordion fix for #4653: added tests, adopted no-auto-height demo to also cover navigation option; fixed an unrelated bug, where ui-accordion-content-active was never removed
Diffstat (limited to 'demos')
-rw-r--r--demos/accordion/no-auto-height.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/demos/accordion/no-auto-height.html b/demos/accordion/no-auto-height.html
index 49b7c3bb8..b76c8d9cc 100644
--- a/demos/accordion/no-auto-height.html
+++ b/demos/accordion/no-auto-height.html
@@ -10,7 +10,8 @@
<script type="text/javascript">
$(function() {
$("#accordion").accordion({
- autoHeight: false
+ autoHeight: false,
+ navigation: true
});
});
</script>
@@ -20,15 +21,15 @@
<div class="demo">
<div id="accordion">
- <h3><a href="#">Section 1</a></h3>
+ <h3><a href="#section1">Section 1</a></h3>
<div>
<p>Mauris mauris ante, blandit et, ultrices a, susceros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.</p>
</div>
- <h3><a href="#">Section 2</a></h3>
+ <h3><a href="#section2">Section 2</a></h3>
<div>
<p>Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna. </p>
</div>
- <h3><a href="#">Section 3</a></h3>
+ <h3><a href="#section3">Section 3</a></h3>
<div>
<p>Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. </p>
<ul>
@@ -40,6 +41,7 @@
<li>List item</li>
<li>List item</li>
</ul>
+ <a href="#othercontent">Link to other content</a>
</div>
</div>
@@ -51,6 +53,8 @@
<p>Setting <code>autoHeight: false</code> allows to accordion panels to keep their native height.</p>
+<p>In addition, the <code>navigation</code> option is enabled, opening the panel based on the current location, eg. no-auto-height.html#panel2 would open the second panel on page load. It also finds anchors within the content, so #othercontent will open the third section, as it contains a link with that href.</p>
+
</div><!-- End demo-description -->
</body>