Ticket #29471: 29471.patch
File 29471.patch, 653 bytes (added by , 11 years ago) |
---|
-
color-picker.js
122 122 open: function() { 123 123 this.element.show().iris( 'toggle' ).focus(); 124 124 this.button.removeClass( 'hidden' ); 125 this.wrap.addClass( 'wp-picker-active' ); 125 126 this.toggler.addClass( 'wp-picker-open' ); 126 127 $( 'body' ).trigger( 'click.wpcolorpicker' ).on( 'click.wpcolorpicker', this.close ); 127 128 }, 128 129 close: function() { 129 130 this.element.hide().iris( 'toggle' ); 130 131 this.button.addClass( 'hidden' ); 132 this.wrap.removeClass( 'wp-picker-active' ); 131 133 this.toggler.removeClass( 'wp-picker-open' ); 132 134 $( 'body' ).off( 'click.wpcolorpicker', this.close ); 133 135 },