Quick Edit: Don't save the post if Enter is pressed on the Cancel link.
props afercia. fixes #30345. Built from https://develop.svn.wordpress.org/trunk@31274 git-svn-id: http://core.svn.wordpress.org/trunk@31255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ee417ec560
commit
15fc97b1cf
|
@ -29,7 +29,7 @@ inlineEditPost = {
|
|||
return inlineEditPost.save(this);
|
||||
});
|
||||
$('td', qeRow).keydown(function(e){
|
||||
if ( e.which === 13 ) {
|
||||
if ( e.which === 13 && ! $( e.target ).hasClass( 'cancel' ) ) {
|
||||
return inlineEditPost.save(this);
|
||||
}
|
||||
});
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31273';
|
||||
$wp_version = '4.2-alpha-31274';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue