Skip to content

Commit

Permalink
Merge pull request #57 from Automattic/inline-edit-enter
Browse files Browse the repository at this point in the history
Move the keydown event to `td` to enable enter to save in quick edit
  • Loading branch information
jeremyfelt committed Mar 6, 2013
2 parents b559d01 + 9db45a9 commit 11a7efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/js/acm.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ inlineEditAdCodes = {

$('a.cancel', row).click(function() { return inlineEditAdCodes.revert(); });
$('a.save', row).click(function() { return inlineEditAdCodes.save(this); });
$('input, select', row).keydown(function(e) { if(e.which == 13) return inlineEditAdCodes.save(this); });
$('td', row).keydown(function(e) { if(e.which == 13) return inlineEditAdCodes.save(this); });

$('#posts-filter input[type="submit"]').mousedown(function(e){
t.revert();
Expand Down

0 comments on commit 11a7efd

Please sign in to comment.