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:
parent
39197965e4
commit
4b760ff840
@ -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();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user