Make WordPress Core

Changeset 49087


Ignore:
Timestamp:
10/02/2020 03:09:46 PM (3 years ago)
Author:
adamsilverstein
Message:

Media: clear inputs after cropping on attachment details screen.

Clear the crop selection input fields after the crop action is complete.
Fixes unexpected re-cropping behavior if the crop button was clicked more than once.

Props davidbinda.
Fixes #30155.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/lib/image-edit.js

    r48651 r49087  
    10081008            this.addStep({ 'c': sel }, postid, nonce);
    10091009        }
     1010
     1011        // Clear the selection fields after cropping.
     1012        $('#imgedit-sel-width-' + postid).val('');
     1013        $('#imgedit-sel-height-' + postid).val('');
    10101014    },
    10111015
Note: See TracChangeset for help on using the changeset viewer.