From 955fba0e67742d7f1c8393c7fa240c72fa1a5acb Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Tue, 2 Jun 2015 07:50:53 -0400 Subject: [PATCH] Fix duplicate image preview --- includes/js/settings-upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/js/settings-upload.js b/includes/js/settings-upload.js index 1fdec42..f08efa1 100644 --- a/includes/js/settings-upload.js +++ b/includes/js/settings-upload.js @@ -29,7 +29,7 @@ jQuery(document).ready(function($){ custom_uploader.on( 'select', function() { attachment = custom_uploader.state().get( 'selection' ).first().toJSON(); - preview = $( target_input ).prevAll( '#upload_logo_preview' ); + preview = $( target_input ).prevAll( '.upload_logo_preview' ); previewImage = $( '
' ); $( target_input ).val( attachment.id ); if ( $( preview ).length ) {