Fix image preview for new terms

This commit is contained in:
Robin Cornett
2015-08-15 14:06:24 -04:00
parent ad5596a2df
commit 4d70265d9f
+1 -1
View File
@@ -30,7 +30,7 @@ jQuery(document).ready(function($){
attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
preview = $( target_input ).prevAll( '.upload_logo_preview' );
previewImage = $( '<div id="upload_logo_preview"><img width="300" src="' + attachment.url + '" /></div>' );
previewImage = $( '<div class="upload_logo_preview"><img width="300" src="' + attachment.url + '" /></div>' );
$( target_input ).val( attachment.id );
if ( $( preview ).length ) {
$( preview ).remove();