Changeset 18229
- Timestamp:
- 06/10/2011 01:41:51 PM (14 years ago)
- Location:
- trunk/wp-content/themes/twentyeleven/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/inc/theme-options.js
r18198 r18229 40 40 }); 41 41 42 $('.image-radio-option input:radio').change( function() {42 $('.image-radio-option.color-scheme input:radio').change( function() { 43 43 var currentDefault = $('#default-color a'), 44 newDefault; 45 if ( $('#link-color').val() !== currentDefault.text() ) 46 return; 47 newDefault = $(this).next().val(); 44 newDefault = $(this).next().val(); 45 46 if ( $('#link-color').val() == currentDefault.text() ) 47 pickColor( newDefault ); 48 48 49 currentDefault.text( newDefault ); 49 pickColor( newDefault );50 50 }); 51 51 }); -
trunk/wp-content/themes/twentyeleven/inc/theme-options.php
r18198 r18229 23 23 24 24 wp_enqueue_style( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.css', false, '2011-04-28' ); 25 wp_enqueue_script( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.js', array( 'farbtastic' ), '2011-0 4-28' );25 wp_enqueue_script( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.js', array( 'farbtastic' ), '2011-06-10' ); 26 26 wp_enqueue_style( 'farbtastic' ); 27 27 } … … 225 225 <table class="form-table"> 226 226 227 <tr valign="top" class="image-radio-option "><th scope="row"><?php _e( 'Color Scheme', 'twentyeleven' ); ?></th>227 <tr valign="top" class="image-radio-option color-scheme"><th scope="row"><?php _e( 'Color Scheme', 'twentyeleven' ); ?></th> 228 228 <td> 229 229 <fieldset><legend class="screen-reader-text"><span><?php _e( 'Color Scheme', 'twentyeleven' ); ?></span></legend> … … 261 261 </tr> 262 262 263 <tr valign="top" class="image-radio-option "><th scope="row"><?php _e( 'Default Layout', 'twentyeleven' ); ?></th>263 <tr valign="top" class="image-radio-option theme-layout"><th scope="row"><?php _e( 'Default Layout', 'twentyeleven' ); ?></th> 264 264 <td> 265 265 <fieldset><legend class="screen-reader-text"><span><?php _e( 'Color Scheme', 'twentyeleven' ); ?></span></legend>
Note: See TracChangeset
for help on using the changeset viewer.