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

git-svn-id: https://develop.svn.wordpress.org/trunk@23163 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-12-10 23:15:53 +00:00
parent b7a4314cbc
commit b386a936e1
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() );
}