WordPress.org

Make WordPress Core

Changeset 35099


Ignore:
Timestamp:
10/13/2015 01:07:21 AM (5 years ago)
Author:
wonderboymusic
Message:

Color Picker: when opening and closing, toggle a wp-picker-active class on the wrapper.

Props norcross.
Fixes #29471.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/color-picker.js

    r30330 r35099  
    125125            this.element.show().iris( 'toggle' ).focus();
    126126            this.button.removeClass( 'hidden' );
     127            this.wrap.addClass( 'wp-picker-active' );
    127128            this.toggler.addClass( 'wp-picker-open' );
    128129            $( 'body' ).trigger( 'click.wpcolorpicker' ).on( 'click.wpcolorpicker', this.close );
     
    131132            this.element.hide().iris( 'toggle' );
    132133            this.button.addClass( 'hidden' );
     134            this.wrap.removeClass( 'wp-picker-active' );
    133135            this.toggler.removeClass( 'wp-picker-open' );
    134136            $( 'body' ).off( 'click.wpcolorpicker', this.close );
Note: See TracChangeset for help on using the changeset viewer.