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. git-svn-id: https://develop.svn.wordpress.org/trunk@49087 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5d4a0c0411
commit
540b331096
@ -1007,6 +1007,10 @@
|
|||||||
sel.fh = h;
|
sel.fh = h;
|
||||||
this.addStep({ 'c': sel }, postid, nonce);
|
this.addStep({ 'c': sel }, postid, nonce);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Clear the selection fields after cropping.
|
||||||
|
$('#imgedit-sel-width-' + postid).val('');
|
||||||
|
$('#imgedit-sel-height-' + postid).val('');
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user