Skip to content

Commit

Permalink
Update JS file
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Jul 7, 2012
1 parent d97ef3f commit f70df89
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/plupload-image.js
Expand Up @@ -121,12 +121,8 @@ jQuery( document ).ready( function($)

rwmb_image_uploaders[prefix].bind( 'FileUploaded', function( up, file, response )
{
var res = wpAjax.parseAjaxResponse( $.parseXML( response.response ), 'ajax-response' ),
$uploaded = $( '#' + this.settings.container + ' .rwmb-uploaded' ),
$uploaded_title = $( '#' + this.settings.container + ' .rwmb-uploaded-title' );
var res = wpAjax.parseAjaxResponse( $.parseXML( response.response ), 'ajax-response' );
false === res.errors ? $( 'li#' + file.id ).replaceWith( res.responses[0].data ) : remove_error( file );


} );
});

Expand Down

0 comments on commit f70df89

Please sign in to comment.