Customizer: Only tie header button action events to the header controls.
Merges [28269] to the 3.9 branch. props danielbachhuber. fixes #28046. see #27848. Built from https://develop.svn.wordpress.org/branches/3.9@28270 git-svn-id: http://core.svn.wordpress.org/branches/3.9@28098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
73a09188b8
commit
900f223ed5
|
@ -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
Loading…
Reference in New Issue