Customizer: Only tie header button action events to the header controls.

props danielbachhuber.
fixes #28046. see #27848.

Built from https://develop.svn.wordpress.org/trunk@28269


git-svn-id: http://core.svn.wordpress.org/trunk@28097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-05-06 04:30:23 +00:00
parent 644024dfc4
commit 962e8113ab
2 changed files with 3 additions and 3 deletions

View File

@ -309,8 +309,8 @@
api.HeaderControl = api.Control.extend({ api.HeaderControl = api.Control.extend({
ready: function() { ready: function() {
this.btnRemove = $('.actions .remove'); this.btnRemove = $('#customize-control-header_image .actions .remove');
this.btnNew = $('.actions .new'); this.btnNew = $('#customize-control-header_image .actions .new');
_.bindAll(this, 'openMedia', 'removeImage'); _.bindAll(this, 'openMedia', 'removeImage');

File diff suppressed because one or more lines are too long