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:
parent
4ad3972f74
commit
4e30461545
|
@ -243,8 +243,8 @@ var imageEdit = window.imageEdit = {
|
||||||
$('#image-editor-' + postid).empty().append(r);
|
$('#image-editor-' + postid).empty().append(r);
|
||||||
t.toggleEditor(postid, 0);
|
t.toggleEditor(postid, 0);
|
||||||
// refresh the attachment model so that changes propagate
|
// refresh the attachment model so that changes propagate
|
||||||
if ( this._view ) {
|
if ( t._view ) {
|
||||||
this._view.refresh();
|
t._view.refresh();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue