Make WordPress Core

Ticket #29471: 29471.patch

File 29471.patch, 653 bytes (added by norcross, 11 years ago)

adds an addClass and removeClass action for the wrap

  • color-picker.js

     
    122122                open: function() {
    123123                        this.element.show().iris( 'toggle' ).focus();
    124124                        this.button.removeClass( 'hidden' );
     125                        this.wrap.addClass( 'wp-picker-active' );
    125126                        this.toggler.addClass( 'wp-picker-open' );
    126127                        $( 'body' ).trigger( 'click.wpcolorpicker' ).on( 'click.wpcolorpicker', this.close );
    127128                },
    128129                close: function() {
    129130                        this.element.hide().iris( 'toggle' );
    130131                        this.button.addClass( 'hidden' );
     132                        this.wrap.removeClass( 'wp-picker-active' );
    131133                        this.toggler.removeClass( 'wp-picker-open' );
    132134                        $( 'body' ).off( 'click.wpcolorpicker', this.close );
    133135                },