Makes sure attachment sizes are correctly deselected in IE. Fixes size selections on insert in IE9. props koopersmith. fixes #22851. for the 3.5 branch.
git-svn-id: http://core.svn.wordpress.org/branches/3.5@23164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
15adfa5298
commit
ae22cf1471
|
@ -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() );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue