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

Props 5um17.
Fixes #30457.


git-svn-id: https://develop.svn.wordpress.org/trunk@30638 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-11-30 06:18:07 +00:00
parent 8813419225
commit ac2c986831

View File

@ -6405,7 +6405,7 @@
changed.push( model.save() );
removed.push( model );
} else {
model.destroy();
model.destroy({wait: true});
}
} );