Changeset 24644
- Timestamp:
- 07/10/2013 04:32:09 PM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
-
css/wp-admin.css (modified) (2 diffs)
-
js/accordion.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/wp-admin.css
r24631 r24644 8885 8885 .no-js .accordion-section .accordion-section-content { 8886 8886 display: block; 8887 background: #fdfdfd;8888 border-left: 1px solid #dfdfdf;8889 border-right: 1px solid #dfdfdf;8890 8887 } 8891 8888 … … 8898 8895 padding: 10px 20px 15px; 8899 8896 overflow: hidden; 8897 background: #fdfdfd; 8898 border-left: 1px solid #dfdfdf; 8899 border-right: 1px solid #dfdfdf; 8900 8900 } 8901 8901 -
trunk/wp-admin/js/accordion.js
r23858 r24644 6 6 e.preventDefault(); // Keep this AFTER the key filter above 7 7 8 var section = $( this ).closest( '.accordion-section' ); 8 var section = $( this ).closest( '.accordion-section' ), 9 siblings = section.siblings( '.open' ), 10 content = section.find( '.accordion-section-content' ); 9 11 10 12 if ( section.hasClass('cannot-expand') ) 11 13 return; 12 14 13 section.siblings( '.open' ).removeClass( 'open' ); 15 siblings.removeClass( 'open' ); 16 siblings.find( '.accordion-section-content' ).show().slideUp( 150 ); 17 content.toggle( section.hasClass( 'open' ) ).slideToggle( 150 ); 14 18 section.toggleClass( 'open' ); 15 19 });
Note: See TracChangeset
for help on using the changeset viewer.