Theme Customizer: Properly bind the 'upload new' and 'remove image' actions in the image picker. see #19910.

This occurred because we weren't calling UploadControl.ready (where the actions are declared and the uploader is initialized) in ImageControl.ready.

git-svn-id: https://develop.svn.wordpress.org/trunk@20301 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-03-28 09:33:32 +00:00
parent 26bba58bdb
commit d5f5376394

View File

@ -160,9 +160,11 @@
});
api.ImageControl = api.UploadControl.extend({
ready: function( id, value, options ) {
ready: function() {
var control = this;
api.UploadControl.prototype.ready.call( this );
this.thumbnail = this.container.find('.thumbnail img');
this.thumbnailSrc = $.proxy( this.thumbnailSrc, this );
this.setting.bind( this.thumbnailSrc );