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:
parent
36554dd983
commit
1c5c724b3a
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue