]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/theme.js
WordPress 4.7.1
[autoinstalls/wordpress.git] / wp-admin / js / theme.js
index 924f29971643749069dc294641693ec89e24da67..9ccf61581ce6ab550822163c4194c1e8077d3821 100644 (file)
@@ -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 } ) );