Make WordPress Core

Changeset 28269


Ignore:
Timestamp:
05/06/2014 04:29:14 AM (11 years ago)
Author:
nacin
Message:

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

props danielbachhuber.
fixes #28046. see #27848.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r28102 r28269  
    310310    api.HeaderControl = api.Control.extend({
    311311        ready: function() {
    312             this.btnRemove        = $('.actions .remove');
    313             this.btnNew           = $('.actions .new');
     312            this.btnRemove        = $('#customize-control-header_image .actions .remove');
     313            this.btnNew           = $('#customize-control-header_image .actions .new');
    314314
    315315            _.bindAll(this, 'openMedia', 'removeImage');
Note: See TracChangeset for help on using the changeset viewer.