Skip to content

Commit

Permalink
Small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiesForDevo committed Mar 28, 2016
1 parent f474f59 commit 0389703
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/min/wordpress.plupload.helper-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions js/wordpress.plupload.helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,16 @@


// merge defaults, params, and data-*
_.config = $.extend( _.defaults, params, _.data );
_.config = $.extend( _.defaults, params, _.scope.data() );


// if a custom extension has been set, use those
if ( _.config.extensions ) {
_.config.filters.mime_types.extensions = _.config.extensions;
_.config.filters.mime_types = [
{
extensions : _.config.extensions
}
];

} else if ( _.config.mime && _.default_mime_types.hasOwnProperty( _.config.mime ) ) {
_.config.filters.mime_types = _.default_mime_types[ _.config.mime ];
Expand Down Expand Up @@ -164,7 +168,7 @@
_.scope.find( _.config.response_area ).append( response.response );

} else {
_.scope.find( _.config.response_area ).slideUp('slow', function() { this.html( response.response ).slideDown('slow'); } );
_.scope.find( _.config.response_area ).slideUp('slow', function() { $(this).html( response.response ).slideDown('slow'); } );

}

Expand Down

0 comments on commit 0389703

Please sign in to comment.