Make WordPress Core

Changeset 31274


Ignore:
Timestamp:
01/24/2015 03:06:43 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Quick Edit: Don't save the post if Enter is pressed on the Cancel link.

props afercia.
fixes #30345.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/inline-edit-post.js

    r31181 r31274  
    3030        });
    3131        $('td', qeRow).keydown(function(e){
    32             if ( e.which === 13 ) {
     32            if ( e.which === 13 && ! $( e.target ).hasClass( 'cancel' ) ) {
    3333                return inlineEditPost.save(this);
    3434            }
Note: See TracChangeset for help on using the changeset viewer.