Quick Edit: Don't save the post if Enter is pressed on the Cancel link.
props afercia. fixes #30345. git-svn-id: https://develop.svn.wordpress.org/trunk@31274 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1b05ffa982
commit
02b3356750
@ -29,7 +29,7 @@ inlineEditPost = {
|
|||||||
return inlineEditPost.save(this);
|
return inlineEditPost.save(this);
|
||||||
});
|
});
|
||||||
$('td', qeRow).keydown(function(e){
|
$('td', qeRow).keydown(function(e){
|
||||||
if ( e.which === 13 ) {
|
if ( e.which === 13 && ! $( e.target ).hasClass( 'cancel' ) ) {
|
||||||
return inlineEditPost.save(this);
|
return inlineEditPost.save(this);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user