WordPress.org

Make WordPress Core

Changeset 45553


Ignore:
Timestamp:
06/20/2019 10:05:03 AM (6 months ago)
Author:
atimmer
Message:

Comments: Open comment quick edit on double click.

In [42767] the quick edit button changed from a link to a button. This caused the jQuery code that selects on a link to no longer work. This commit restores the previous behavior.

Fixes #47572.
See #43382, #38677.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/edit-comments.js

    r44924 r45553  
    640640    toggle : function(el) {
    641641        if ( 'none' !== $( el ).css( 'display' ) && ( $( '#replyrow' ).parent().is('#com-reply') || window.confirm( adminCommentsL10n.warnQuickEdit ) ) ) {
    642             $( el ).find( 'a.vim-q' ).click();
     642            $( el ).find( 'button.vim-q' ).click();
    643643        }
    644644    },
Note: See TracChangeset for help on using the changeset viewer.