r1878 - in trunk: demos/accordion tests/static/accordion tests/unit/accordion tests/visual/accord...

r1878 - in trunk: demos/accordion tests/static/accordion tests/unit/accordion tests/visual/accord...


Author: scott.gonzalez
Date: Thu Jan 29 18:35:37 2009
New Revision: 1878
Added:
trunk/tests/visual/accordion/dl.html
Modified:
trunk/demos/accordion/collapsible.html
trunk/demos/accordion/custom-icons.html
trunk/demos/accordion/default.html
trunk/demos/accordion/fillspace.html
trunk/demos/accordion/index.html
trunk/demos/accordion/mouseover.html
trunk/tests/static/accordion/default.html
trunk/tests/static/accordion/dl.html
trunk/tests/static/accordion/ul.html
trunk/tests/unit/accordion/accordion.js
trunk/tests/visual/accordion/accordion.html
trunk/tests/visual/accordion/default.html
trunk/themes/base/ui.accordion.css
trunk/ui/ui.accordion.js
Log:
Accordion: Fixed #3788: Removed wrapper divs and smoothed animations,
allowing accordions to work with dl's and ul's again.
Modified: trunk/demos/accordion/collapsible.html
==============================================================================
--- trunk/demos/accordion/collapsible.html    (original)
+++ trunk/demos/accordion/collapsible.html    Thu Jan 29 18:35:37 2009
@@ -21,34 +21,26 @@
<div class="demo">
<div id="accordion">
+    <h3><a href="#">Section 1</a></h3>
    <div>
-        <h3><a href="#">Section 1</a></h3>
-        <div>
-            

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam.
Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum
sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
vulputate.




-        </div>
+        

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam.
Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum
sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
vulputate.




    </div>
+    <h3><a href="#">Section 2</a></h3>
    <div>
-        <h3><a href="#">Section 2</a></h3>
-        <div>
-            

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit
amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis
porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non
quam. In suscipit faucibus urna.



-        </div>
+        

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
suscipit faucibus urna.



    </div>
+    <h3><a href="#">Section 3</a></h3>
    <div>
-        <h3><a href="#">Section 3</a></h3>
-        <div>
-            

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus
ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna
quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis
dui.




-            <ul>
-                <li>List item one</li>
-                <li>List item two</li>
-                <li>List item three</li>
-            </ul>
-        </div>
+        

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus
ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna
quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis
dui.




+        <ul>
+            <li>List item one</li>
+            <li>List item two</li>
+            <li>List item three</li>
+        </ul>
    </div>
+    <h3><a href="#">Section 4</a></h3>
    <div>
-        <h3><a href="#">Section 4</a></h3>
-        <div>
-            

Cras dictum. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
mauris vel est.


Suspendisse eu nisl. Nullam ut libero. Integer
dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent
per conubia nostra, per inceptos himenaeos.


-        </div>
+        

Cras dictum. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
mauris vel est.


Suspendisse eu nisl. Nullam ut libero. Integer
dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent
per conubia nostra, per inceptos himenaeos.


    </div>
</div>
Modified: trunk/demos/accordion/custom-icons.html
==============================================================================
--- trunk/demos/accordion/custom-icons.html    (original)
+++ trunk/demos/accordion/custom-icons.html    Thu Jan 29 18:35:37 2009
@@ -24,34 +24,26 @@
<div class="demo">
<div id="accordion">
+    <h3><a href="#">Section 1</a></h3>
    <div>
-        <h3><a href="#">Section 1</a></h3>
-        <div>
-            

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam.
Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum
sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
vulputate.




-        </div>
+        

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam.
Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum
sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
vulputate.




    </div>
+    <h3><a href="#">Section 2</a></h3>
    <div>
-        <h3><a href="#">Section 2</a></h3>
-        <div>
-            

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit
amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis
porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non
quam. In suscipit faucibus urna.



-        </div>
+        

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
suscipit faucibus urna.



    </div>
+    <h3><a href="#">Section 3</a></h3>
    <div>
-        <h3><a href="#">Section 3</a></h3>
-        <div>
-            

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus
ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna
quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis
dui.




-            <ul>
-                <li>List item one</li>
-                <li>List item two</li>
-                <li>List item three</li>
-            </ul>
-        </div>
+        

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus
ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna
quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis
dui.




+        <ul>
+            <li>List item one</li>
+            <li>List item two</li>
+            <li>List item three</li>
+        </ul>
    </div>
+    <h3><a href="#">Section 4</a></h3>
    <div>
-        <h3><a href="#">Section 4</a></h3>
-        <div>
-            

Cras dictum. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
mauris vel est.


Suspendisse eu nisl. Nullam ut libero. Integer
dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent
per conubia nostra, per inceptos himenaeos.


-        </div>
+        

Cras dictum. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
mauris vel est.


Suspendisse eu nisl. Nullam ut libero. Integer
dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent
per conubia nostra, per inceptos himenaeos.


    </div>
</div>
Modified: trunk/demos/accordion/default.html
==============================================================================
--- trunk/demos/accordion/default.html    (original)
+++ trunk/demos/accordion/default.html    Thu Jan 29 18:35:37 2009
@@ -20,59 +20,51 @@
<div class="demo">
<div id="accordion">
+    <h3><a href="#">Section 1</a></h3>
    <div>
-        <h3><a href="#">Section 1</a></h3>
-        <div>
-            


-            Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
-            ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
-            amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
ut
-            odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
vulputate.
-            







-        </div>
+        


+        Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
+        ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
+        amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
+        odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
vulputate.
+        






    </div>
+    <h3><a href="#">Section 2</a></h3>
    <div>
-        <h3><a href="#">Section 2</a></h3>
-        <div>
-            


-            Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
-            purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis
porttitor
-            velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
-            suscipit faucibus urna.
-            






-        </div>
+        


+        Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
+        purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis
porttitor
+        velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
+        suscipit faucibus urna.
+        






    </div>
+    <h3><a href="#">Section 3</a></h3>
    <div>
-        <h3><a href="#">Section 3</a></h3>
-        <div>
-            


-            Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
lobortis.
-            Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac
libero
-            ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis
-            lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis
dui.
-            








-            <ul>
-                <li>List item one</li>
-                <li>List item two</li>
-                <li>List item three</li>
-            </ul>
-        </div>
+        


+        Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
lobortis.
+        Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac
libero
+        ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis
+        lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis
dui.
+        








+        <ul>
+            <li>List item one</li>
+            <li>List item two</li>
+            <li>List item three</li>
+        </ul>
    </div>
+    <h3><a href="#">Section 4</a></h3>
    <div>
-        <h3><a href="#">Section 4</a></h3>
-        <div>
-            


-            Cras dictum. Pellentesque habitant morbi tristique senectus et netus
-            et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
-            faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
-            mauris vel est.
-            





-            


-            Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat
lectus.
-            Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
-            inceptos himenaeos.
-            





-        </div>
+        


+        Cras dictum. Pellentesque habitant morbi tristique senectus et netus
+        et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
+        faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
+        mauris vel est.
+        





+        


+        Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat
lectus.
+        Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
+        inceptos himenaeos.
+        





    </div>
</div>
Modified: trunk/demos/accordion/fillspace.html
==============================================================================
--- trunk/demos/accordion/fillspace.html    (original)
+++ trunk/demos/accordion/fillspace.html    Thu Jan 29 18:35:37 2009
@@ -34,34 +34,26 @@
<div id="accordionResizer" style="padding:10px; width:350px;
height:220px;" class="ui-widget-content">
<div id="accordion">
+    <h3><a href="#">Section 1</a></h3>
    <div>
-        <h3><a href="#">Section 1</a></h3>
-        <div>
-            

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam.
Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum
sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
vulputate.




-        </div>
+        

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam.
Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum
sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
vulputate.




    </div>
+    <h3><a href="#">Section 2</a></h3>
    <div>
-        <h3><a href="#">Section 2</a></h3>
-        <div>
-            

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit
amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis
porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non
quam. In suscipit faucibus urna.



-        </div>
+        

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
suscipit faucibus urna.



    </div>
+    <h3><a href="#">Section 3</a></h3>
    <div>
-        <h3><a href="#">Section 3</a></h3>
-        <div>
-            

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus
ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna
quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis
dui.




-            <ul>
-                <li>List item one</li>
-                <li>List item two</li>
-                <li>List item three</li>
-            </ul>
-        </div>
+        

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus
ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna
quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis
dui.




+        <ul>
+            <li>List item one</li>
+            <li>List item two</li>
+            <li>List item three</li>
+        </ul>
    </div>
+    <h3><a href="#">Section 4</a></h3>
    <div>
-        <h3><a href="#">Section 4</a></h3>
-        <div>
-            

Cras dictum. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
mauris vel est.


Suspendisse eu nisl. Nullam ut libero. Integer
dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent
per conubia nostra, per inceptos himenaeos.


-        </div>
+        

Cras dictum. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
mauris vel est.


Suspendisse eu nisl. Nullam ut libero. Integer
dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent
per conubia nostra, per inceptos himenaeos.


    </div>
</div>
Modified: trunk/demos/accordion/index.html
==============================================================================
--- trunk/demos/accordion/index.html    (original)
+++ trunk/demos/accordion/index.html    Thu Jan 29 18:35:37 2009
@@ -13,7 +13,6 @@
            <li><a href="collapsible.html">Collapse content</a></li>
            <li><a href="mouseover.html">Open on mouseover</a></li>
            <li><a href="custom-icons.html">Customize icons</a></li>
-            
        </ul>
    </div>
</body>
Modified: trunk/demos/accordion/mouseover.html
==============================================================================
--- trunk/demos/accordion/mouseover.html    (original)
+++ trunk/demos/accordion/mouseover.html    Thu Jan 29 18:35:37 2009
@@ -21,34 +21,26 @@
<div class="demo">
<div id="accordion">
+    <h3><a href="#">Section 1</a></h3>
    <div>
-        <h3><a href="#">Section 1</a></h3>
-        <div>
-            

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam.
Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum
sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
vulputate.




-        </div>
+        

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam.
Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum
sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque
vulputate.




    </div>
+    <h3><a href="#">Section 2</a></h3>
    <div>
-        <h3><a href="#">Section 2</a></h3>
-        <div>
-            

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit
amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis
porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non
quam. In suscipit faucibus urna.



-        </div>
+        

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
suscipit faucibus urna.



    </div>
+    <h3><a href="#">Section 3</a></h3>
    <div>
-        <h3><a href="#">Section 3</a></h3>
-        <div>
-            

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus
ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna
quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis
dui.




-            <ul>
-                <li>List item one</li>
-                <li>List item two</li>
-                <li>List item three</li>
-            </ul>
-        </div>
+        

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus
ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna
quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis
dui.




+        <ul>
+            <li>List item one</li>
+            <li>List item two</li>
+            <li>List item three</li>
+        </ul>
    </div>
+    <h3><a href="#">Section 4</a></h3>
    <div>
-        <h3><a href="#">Section 4</a></h3>
-        <div>
-            

Cras dictum. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
mauris vel est.


Suspendisse eu nisl. Nullam ut libero. Integer
dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent
per conubia nostra, per inceptos himenaeos.


-        </div>
+        

Cras dictum. Pellentesque habitant morbi tristique senectus et netus
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
mauris vel est.


Suspendisse eu nisl. Nullam ut libero. Integer
dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent
per conubia nostra, per inceptos himenaeos.


    </div>
</div>
Modified: trunk/tests/static/accordion/default.html
==============================================================================
--- trunk/tests/static/accordion/default.html    (original)
+++ trunk/tests/static/accordion/default.html    Thu Jan 29 18:35:37 2009
@@ -7,17 +7,6 @@
    <link rel="stylesheet" href="../../../themes/base/ui.theme.css"
type="text/css" title="ui-theme" />
    <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
    <script type="text/javascript" src="../static.js"></script>
-    <style type="text/css">
-     /* Accordion
-    ----------------------------------*/
-    .ui-accordion .ui-accordion-header { cursor: pointer; position: relative;
margin-top: 1px; zoom: 1; }
-    .ui-accordion li {display: inline;}
-    .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
-    .ui-accordion .ui-accordion-header a { display: block; font-size: 1em;
padding: .5em .5em .5em 2.2em; }
-    .ui-accordion .ui-accordion-header .ui-icon { position: absolute;
left: .5em; top: 50%; margin-top: -8px; }
-    .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0;
margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px;
overflow: auto; display: none; }
-    .ui-accordion .ui-accordion-content-active { display: block; }
-    </style>
</head>
<body>
Modified: trunk/tests/static/accordion/dl.html
==============================================================================
--- trunk/tests/static/accordion/dl.html    (original)
+++ trunk/tests/static/accordion/dl.html    Thu Jan 29 18:35:37 2009
@@ -7,17 +7,6 @@
    <link rel="stylesheet" href="../../../themes/base/ui.theme.css"
type="text/css" title="ui-theme" />
    <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
    <script type="text/javascript" src="../static.js"></script>
-    <style type="text/css">
-     /* Accordion
-    ----------------------------------*/
-    .ui-accordion .ui-acco