Make WordPress Core

Changeset 27644


Ignore:
Timestamp:
03/20/2014 11:24:43 PM (10 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/image-edit.js

    r27445 r27644  
    244244            t.toggleEditor(postid, 0);
    245245            // refresh the attachment model so that changes propagate
    246             if ( this._view ) {
    247                 this._view.refresh();
     246            if ( t._view ) {
     247                t._view.refresh();
    248248            }
    249249        });
Note: See TracChangeset for help on using the changeset viewer.