WordPress.org

Make WordPress Core

Changeset 30638


Ignore:
Timestamp:
11/30/2014 06:18:07 AM (5 years ago)
Author:
wonderboymusic
Message:

When deleting media grid attachments, wait until the server responds before removing the model from its collection.

Props 5um17.
Fixes #30457.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-views.js

    r30483 r30638  
    64066406                                removed.push( model );
    64076407                            } else {
    6408                                 model.destroy();
     6408                                model.destroy({wait: true});
    64096409                            }
    64106410                        } );
Note: See TracChangeset for help on using the changeset viewer.