mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion: Fixed visual test for dl markup.
Fixes #5329 - Nested Accordion header is not lined up properly.
This commit is contained in:
parent
385269e3ea
commit
936a934d6d
@ -12,7 +12,12 @@
|
|||||||
<script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>
|
<script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
$("dl").accordion()
|
$("dl").accordion({
|
||||||
|
change: function(event, ui) {
|
||||||
|
console.log("new: " + ui.newContent.text());
|
||||||
|
console.log("old: " + ui.oldContent.text());
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
@ -23,10 +28,10 @@
|
|||||||
<dd>
|
<dd>
|
||||||
Accordion Content 1
|
Accordion Content 1
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Term 1</dt>
|
<dt><a href="#">Term 1</a></dt>
|
||||||
<dt>Definition 1</dt>
|
<dd>Definition 1</dd>
|
||||||
<dt>Term 2</dt>
|
<dt><a href="#">Term 2</a></dt>
|
||||||
<dt>Definition 2</dt>
|
<dd>Definition 2</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</dd>
|
</dd>
|
||||||
<dt><a href="#">Accordion Header 2</a></dt>
|
<dt><a href="#">Accordion Header 2</a></dt>
|
||||||
@ -35,7 +40,7 @@
|
|||||||
</dd>
|
</dd>
|
||||||
<dt><a href="#">Accordion Header 3</a></dt>
|
<dt><a href="#">Accordion Header 3</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
Accordion Content 2
|
Accordion Content 3
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user