Makes sure attachment sizes are correctly deselected in IE. Fixes size selections on insert in IE9. props koopersmith. fixes #22851.

git-svn-id: http://core.svn.wordpress.org/trunk@23163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-12-10 23:15:53 +00:00
parent 0e5fcefe03
commit 94b3fbc8dd
1 changed files with 2 additions and 1 deletions

View File

@ -3900,10 +3900,11 @@
$value = $setting.find('[value="' + value + '"]');
if ( $value.length ) {
$setting.find('option').prop( 'selected', false );
$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() );
this.model.set( key, $setting.find(':selected').val() );
}