Make WordPress Core

Ticket #28046: 28046.1.diff

File 28046.1.diff, 608 bytes (added by danielbachhuber, 11 years ago)

More targeted selectors for header controls

  • wp-admin/js/customize-controls.js

     
    309309
    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 .actions .remove');
     313                        this.btnNew           = $('.customize-control-header .actions .new');
    314314
    315315                        _.bindAll(this, 'openMedia', 'removeImage');
    316316