From 87e6390895c6062e5899f7ff25c6450e18861b3e Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Mon, 12 Dec 2016 09:31:38 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@39586 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index aa72821e85..159c6778d1 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -806,7 +806,7 @@ themes.view.Details = wp.Backbone.View.extend({ $( document ).one( 'wp-theme-delete-success', function( event, response ) { _this.$el.find( '.close' ).trigger( 'click' ); - $( '[data-slug="' + response.slug + '"' ).css( { backgroundColor:'#faafaa' } ).fadeOut( 350, function() { + $( '[data-slug="' + response.slug + '"]' ).css( { backgroundColor:'#faafaa' } ).fadeOut( 350, function() { $( this ).remove(); _themes.data.themes = _.without( _themes.data.themes, _.findWhere( _themes.data.themes, { id: response.slug } ) );