diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-05-11 11:43:48 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-05-11 11:43:48 +0000 |
commit | 892824558c0004a519ea3772bdf7205bd50006f5 (patch) | |
tree | 2d768b0a2bbe6faa5aef8f5b8b01771ed035ac39 /demos/accordion | |
parent | 2291be6a65f8b0a23ec1cf44546cda0bc7147423 (diff) | |
download | jquery-ui-892824558c0004a519ea3772bdf7205bd50006f5.tar.gz jquery-ui-892824558c0004a519ea3772bdf7205bd50006f5.zip |
Fix for #4222
Diffstat (limited to 'demos/accordion')
-rw-r--r-- | demos/accordion/custom-icons.html | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/demos/accordion/custom-icons.html b/demos/accordion/custom-icons.html index 777fa5288..914ba32cd 100644 --- a/demos/accordion/custom-icons.html +++ b/demos/accordion/custom-icons.html @@ -9,11 +9,17 @@ <link type="text/css" href="../demos.css" rel="stylesheet" /> <script type="text/javascript"> $(function() { + var icons = { + header: "ui-icon-circle-arrow-e", + headerSelected: "ui-icon-circle-arrow-s" + }; $("#accordion").accordion({ - icons: { - header: "ui-icon-circle-arrow-e", - headerSelected: "ui-icon-circle-arrow-s" - } + icons: icons + }); + $("#toggle").toggle(function() { + $("#accordion").accordion("option", "icons", false); + }, function() { + $("#accordion").accordion("option", "icons", icons); }); }); </script> @@ -46,6 +52,8 @@ </div> </div> +<button id="toggle">Toggle icons</button> + </div><!-- End demo --> |