Make WordPress Core

Changeset 39586 for trunk


Ignore:
Timestamp:
12/12/2016 09:31:38 AM (8 years ago)
Author:
obenland
Message:

Themes: Add missing square bracket in jQuery selector.

Fixes a bug in Safari where the UI wasn't updated after deleting a theme due to
the incomplete selector.

Props Hristo Sg.
Fixes #39246.

File:
1 edited

Legend:

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

    r39528 r39586  
    807807        $( document ).one( 'wp-theme-delete-success', function( event, response ) {
    808808            _this.$el.find( '.close' ).trigger( 'click' );
    809             $( '[data-slug="' + response.slug + '"' ).css( { backgroundColor:'#faafaa' } ).fadeOut( 350, function() {
     809            $( '[data-slug="' + response.slug + '"]' ).css( { backgroundColor:'#faafaa' } ).fadeOut( 350, function() {
    810810                $( this ).remove();
    811811                _themes.data.themes = _.without( _themes.data.themes, _.findWhere( _themes.data.themes, { id: response.slug } ) );
Note: See TracChangeset for help on using the changeset viewer.