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

git-svn-id: https://develop.svn.wordpress.org/trunk@23037 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-12-04 19:38:16 +00:00
parent 39049254ae
commit 0fa07588c5
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() );