use button on accordion demo page with a button-eleement

This commit is contained in:
Jörn Zaefferer 2010-02-20 17:54:35 +00:00
parent b53bf774ce
commit 8e8094be4b

View File

@ -7,6 +7,7 @@
<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script> <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script> <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
<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" src="../../ui/jquery.ui.button.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" /> <link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
@ -17,7 +18,7 @@
$("#accordion").accordion({ $("#accordion").accordion({
icons: icons icons: icons
}); });
$("#toggle").toggle(function() { $("#toggle").button().toggle(function() {
$("#accordion").accordion("option", "icons", false); $("#accordion").accordion("option", "icons", false);
}, function() { }, function() {
$("#accordion").accordion("option", "icons", icons); $("#accordion").accordion("option", "icons", icons);