]> source.dussan.org Git - jquery-ui.git/commitdiff
accordion: better default for header-option
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 30 Jan 2009 16:10:00 +0000 (16:10 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 30 Jan 2009 16:10:00 +0000 (16:10 +0000)
demos/accordion/collapsible.html
demos/accordion/custom-icons.html
demos/accordion/default.html
demos/accordion/fillspace.html
demos/accordion/mouseover.html
ui/ui.accordion.js

index 89d78e1cf5ec8be1dc45c22d6f4af7d76ebbe7e4..a4e3a31aedd3c245042e5b45fbf9741fd3b3cae8 100644 (file)
@@ -10,7 +10,6 @@
        <script type="text/javascript">
        $(function() {
                $("#accordion").accordion({
-                       header: "h3",
                        alwaysOpen: false
                });
        });
index 4dae8bb84a7ac29770ec5fa72b27ee9ff67b6340..257cf298f640e9f08a96b630dc55e246a952603e 100644 (file)
@@ -10,7 +10,6 @@
        <script type="text/javascript">
        $(function() {
                $("#accordion").accordion({
-                       header: "h3",
                        icons: {
                        header: "ui-icon-circle-arrow-e",
                                headerSelected: "ui-icon-circle-arrow-s"
index 37353ffa5df1f48534098fd941ed9ad8f8955ec2..5f1dad28178fb90e194ff37906cc872135a8c2e8 100644 (file)
@@ -9,9 +9,7 @@
        <link type="text/css" href="../demos.css" rel="stylesheet" />
        <script type="text/javascript">
        $(function() {
-               $("#accordion").accordion({
-                       header: "h3"
-               });
+               $("#accordion").accordion();
        });
        </script>
 </head>
index 0a2f8ae166ee4ad299bc4c8482bfc553750dcad5..c7c055606aaa00b0a6ca2e2dd13417767fd0afce 100644 (file)
@@ -11,7 +11,6 @@
        <script type="text/javascript">
        $(function() {
                $("#accordion").accordion({
-                       header: "h3",
                        fillSpace: true
                });
        });
index ecf63f8214d5887039386fe1a38c0d3a397f2ab4..f6fd1394baf6d8e6e5a980a50ecf155c5223a657 100644 (file)
@@ -10,8 +10,7 @@
        <script type="text/javascript">
        $(function() {
                $("#accordion").accordion({
-                       event: "mouseover",
-                       header: "h3"
+                       event: "mouseover"
                });
        });
        </script>
index 59ae6910a48bf2427fd38dab05094aa50c88ce9d..0ecbfeb24a0baa2385fc64943a02faa44333dd2c 100644 (file)
@@ -373,7 +373,7 @@ $.extend($.ui.accordion, {
                clearStyle: false,
                event: "click",
                fillSpace: false,
-               header: "a",
+               header: "> li :first,> :not(li):odd",
                icons: {
                        header: "ui-icon-triangle-1-e",
                        headerSelected: "ui-icon-triangle-1-s"