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.


git-svn-id: https://develop.svn.wordpress.org/trunk@45553 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Anton Timmermans 2019-06-20 10:05:03 +00:00
parent 52f5768db6
commit 7a9af3a4ed

View File

@ -639,7 +639,7 @@ window.commentReply = {
toggle : function(el) {
if ( 'none' !== $( el ).css( 'display' ) && ( $( '#replyrow' ).parent().is('#com-reply') || window.confirm( adminCommentsL10n.warnQuickEdit ) ) ) {
$( el ).find( 'a.vim-q' ).click();
$( el ).find( 'button.vim-q' ).click();
}
},