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: http://svn.automattic.com/wordpress/trunk@20301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
koopersmith 2012-03-28 09:33:32 +00:00
parent 23ef6d4aab
commit fc22367830
1 changed files with 3 additions and 1 deletions

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 );