Make WordPress Core

Changeset 39587 for branches/4.7


Ignore:
Timestamp:
12/12/2016 09:33:56 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.
Merges [39586] to the 4.7 branch.
Fixes #39246.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-admin/js/theme.js

    r38855 r39587  
    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.