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:
Sergey Biryukov 2015-01-24 15:07:22 +00:00
parent ee417ec560
commit 15fc97b1cf
3 changed files with 3 additions and 3 deletions

View File

@ -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);
} }
}); });

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.