Editing image file: properly refresh the view after restoring the original image or rescaling the image. Props gcorne, see #21811

git-svn-id: https://develop.svn.wordpress.org/trunk@27644 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-03-20 23:24:43 +00:00
parent 39197965e4
commit 4b760ff840

View File

@ -243,8 +243,8 @@ var imageEdit = window.imageEdit = {
$('#image-editor-' + postid).empty().append(r);
t.toggleEditor(postid, 0);
// refresh the attachment model so that changes propagate
if ( this._view ) {
this._view.refresh();
if ( t._view ) {
t._view.refresh();
}
});
},