]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Added ui-accordion-header-icon class to generated icons in order to not...
authorScott González <scott.gonzalez@gmail.com>
Thu, 3 Feb 2011 02:15:25 +0000 (21:15 -0500)
committerScott González <scott.gonzalez@gmail.com>
Thu, 3 Feb 2011 02:15:25 +0000 (21:15 -0500)
themes/base/jquery.ui.accordion.css
ui/jquery.ui.accordion.js

index a260cf9efb2d893f5b5a894ce42a2fbb4e7531f0..dfc98c2260b7a0889ce8865d803cb985288d9871 100644 (file)
@@ -13,6 +13,6 @@
 .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
 .ui-accordion .ui-accordion-heading { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
 .ui-accordion-icons .ui-accordion-heading { padding-left: 2.2em; }
-.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
+.ui-accordion .ui-accordion-header .ui-accordion-header-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; zoom: 1; }
 .ui-accordion .ui-accordion-content-active { display: block; }
index 6c257c8c0b56fa7595ecb6d46b65af29154cd716..48b3bdec89a77236e709d82d7e97a053efa66a28 100644 (file)
@@ -98,9 +98,9 @@ $.widget( "ui.accordion", {
                var icons = this.options.icons;
                if ( icons ) {
                        $( "<span>" )
-                               .addClass( "ui-icon " + icons.header )
+                               .addClass( "ui-accordion-header-icon ui-icon " + icons.header )
                                .prependTo( this.headers );
-                       this.active.children( ".ui-icon" )
+                       this.active.children( ".ui-accordion-header-icon" )
                                .removeClass( icons.header )
                                .addClass( icons.activeHeader );
                        this.element.addClass( "ui-accordion-icons" );
@@ -108,7 +108,7 @@ $.widget( "ui.accordion", {
        },
 
        _destroyIcons: function() {
-               this.headers.children( ".ui-icon" ).remove();
+               this.headers.children( ".ui-accordion-header-icon" ).remove();
                this.element.removeClass( "ui-accordion-icons" );
        },
 
@@ -272,7 +272,7 @@ $.widget( "ui.accordion", {
                this.active
                        .removeClass( "ui-state-active ui-corner-top" )
                        .addClass( "ui-state-default ui-corner-all" )
-                       .children( ".ui-icon" )
+                       .children( ".ui-accordion-header-icon" )
                                .removeClass( this.options.icons.activeHeader )
                                .addClass( this.options.icons.header );
                this.active.next().addClass( "ui-accordion-content-active" );
@@ -345,14 +345,14 @@ $.widget( "ui.accordion", {
                active
                        .removeClass( "ui-state-active ui-corner-top" )
                        .addClass( "ui-state-default ui-corner-all" )
-                       .children( ".ui-icon" )
+                       .children( ".ui-accordion-header-icon" )
                                .removeClass( options.icons.activeHeader )
                                .addClass( options.icons.header );
                if ( !clickedIsActive ) {
                        clicked
                                .removeClass( "ui-state-default ui-corner-all" )
                                .addClass( "ui-state-active ui-corner-top" )
-                               .children( ".ui-icon" )
+                               .children( ".ui-accordion-header-icon" )
                                        .removeClass( options.icons.header )
                                        .addClass( options.icons.activeHeader );
                        clicked