diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-01-30 16:10:00 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-01-30 16:10:00 +0000 |
commit | 00b0b3661f31e79b65753f3c4b18ca26cc70404a (patch) | |
tree | aec286bc202eb1acb6939836f8c0e42c5af9fe47 | |
parent | b81f57ad3828fe559da2d13ee699cf267673a6ee (diff) | |
download | jquery-ui-00b0b3661f31e79b65753f3c4b18ca26cc70404a.tar.gz jquery-ui-00b0b3661f31e79b65753f3c4b18ca26cc70404a.zip |
accordion: better default for header-option
-rw-r--r-- | demos/accordion/collapsible.html | 1 | ||||
-rw-r--r-- | demos/accordion/custom-icons.html | 1 | ||||
-rw-r--r-- | demos/accordion/default.html | 4 | ||||
-rw-r--r-- | demos/accordion/fillspace.html | 1 | ||||
-rw-r--r-- | demos/accordion/mouseover.html | 3 | ||||
-rw-r--r-- | ui/ui.accordion.js | 2 |
6 files changed, 3 insertions, 9 deletions
diff --git a/demos/accordion/collapsible.html b/demos/accordion/collapsible.html index 89d78e1cf..a4e3a31ae 100644 --- a/demos/accordion/collapsible.html +++ b/demos/accordion/collapsible.html @@ -10,7 +10,6 @@ <script type="text/javascript"> $(function() { $("#accordion").accordion({ - header: "h3", alwaysOpen: false }); }); diff --git a/demos/accordion/custom-icons.html b/demos/accordion/custom-icons.html index 4dae8bb84..257cf298f 100644 --- a/demos/accordion/custom-icons.html +++ b/demos/accordion/custom-icons.html @@ -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" diff --git a/demos/accordion/default.html b/demos/accordion/default.html index 37353ffa5..5f1dad281 100644 --- a/demos/accordion/default.html +++ b/demos/accordion/default.html @@ -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> diff --git a/demos/accordion/fillspace.html b/demos/accordion/fillspace.html index 0a2f8ae16..c7c055606 100644 --- a/demos/accordion/fillspace.html +++ b/demos/accordion/fillspace.html @@ -11,7 +11,6 @@ <script type="text/javascript"> $(function() { $("#accordion").accordion({ - header: "h3", fillSpace: true }); }); diff --git a/demos/accordion/mouseover.html b/demos/accordion/mouseover.html index ecf63f821..f6fd1394b 100644 --- a/demos/accordion/mouseover.html +++ b/demos/accordion/mouseover.html @@ -10,8 +10,7 @@ <script type="text/javascript"> $(function() { $("#accordion").accordion({ - event: "mouseover", - header: "h3" + event: "mouseover" }); }); </script> diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 59ae6910a..0ecbfeb24 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -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" |