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

Built from https://develop.svn.wordpress.org/trunk@27644


git-svn-id: http://core.svn.wordpress.org/trunk@27487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-03-20 23:25:14 +00:00
parent 4ad3972f74
commit 4e30461545
2 changed files with 3 additions and 3 deletions

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();
}
});
},

File diff suppressed because one or more lines are too long