Permalink
Browse files

Update javascript to allow settings section content.

Some minor tweaks allow us to actually display content while maintaing
the collapsable sections.
  • Loading branch information...
mgsisk committed Nov 17, 2012
1 parent f65e426 commit 41eb982c1d4ef233a2a5e894573b084d757a0815
Showing with 4 additions and 5 deletions.
  1. +4 −5 -/js/admin-config.js
View
@@ -55,15 +55,14 @@ jQuery( function( $ ) {
color: '#21759b',
cursor: 'pointer',
padding: '.5em 0 0'
- } ).next().hide();
-
- $( '.wrap h3:first' ).next().show();
-
+ } ).nextAll( 'table' ).hide();
$( '.wrap h3' ).on( 'mouseenter', function() { $( this ).css( 'color', '#d54e21' ); } );
$( '.wrap h3' ).on( 'mouseleave', function() { $( this ).css( 'color', '#21759b' ); } );
$( '.wrap h3' ).on( 'click', function() {
- $( this ).next().toggle();
+ $( this ).nextAll( 'table:first' ).toggle();
} );
+
+ $( '.wrap h3:first' ).trigger( 'click' );
} );

0 comments on commit 41eb982

Please sign in to comment.