Quick Edit: on the Taxonomies screens, prevent a page reload when pressing Enter on a focused field.

Fixes #35401 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@36260 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2016-01-11 13:14:18 +00:00
parent c4526edeec
commit 68d4b23608
2 changed files with 3 additions and 0 deletions

View File

@ -284,6 +284,7 @@ inlineEditPost = {
}
},
'html');
// Prevent submitting the form when pressing Enter on a focused field.
return false;
},

View File

@ -137,6 +137,8 @@ inlineEditTax = {
}
}
);
// Prevent submitting the form when pressing Enter on a focused field.
return false;
},
revert : function() {