Media: Properly select the select element's option in the attachment display settings. props koopersmith. fixes #22693.

git-svn-id: http://core.svn.wordpress.org/trunk@23037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-12-04 19:38:16 +00:00
parent 36554dd983
commit 1c5c724b3a
1 changed files with 1 additions and 1 deletions

View File

@ -3742,7 +3742,7 @@
$value = $setting.find('[value="' + value + '"]');
if ( $value.length ) {
$value.select();
$value.prop( 'selected', true );
} else {
// If we can't find the desired value, record what *is* selected.
this.model.set( $setting.data('setting'), $setting.find(':selected').val() );