WordPress.org

Make WordPress Core

Changeset 23033


Ignore:
Timestamp:
12/04/12 18:50:49 (3 years ago)
Author:
ryan
Message:

Better dropdown select handling.

Props cdog, koopersmith
fixes #22693

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r23032 r23033  
    37433743 
    37443744                if ( $value.length ) { 
    3745                     $value.attr( 'selected', true ); 
     3745                    $value.select(); 
    37463746                } else { 
    37473747                    // If we can't find the desired value, record what *is* selected. 
    3748                     this.model.set( $setting.data('setting'), $setting.find('[selected]').val() ); 
     3748                    this.model.set( $setting.data('setting'), $setting.find(':selected').val() ); 
    37493749                } 
    37503750 
Note: See TracChangeset for help on using the changeset viewer.