summaryrefslogtreecommitdiffstatshomepage
path: root/src/js/_enqueues/admin/edit-comments.js
diff options
context:
space:
mode:
authorAnton Timmermans <atimmer@git.wordpress.org>2019-06-20 10:05:03 +0000
committerAnton Timmermans <atimmer@git.wordpress.org>2019-06-20 10:05:03 +0000
commit7a9af3a4edd23f82a284a439864e477c85ae30d3 (patch)
tree781d8a8b002c53abda413f47461de006f0d03d3d /src/js/_enqueues/admin/edit-comments.js
parent52f5768db63f2930a12e426a9b6d5164c220660d (diff)
downloadwordpress-7a9af3a4edd23f82a284a439864e477c85ae30d3.tar.gz
wordpress-7a9af3a4edd23f82a284a439864e477c85ae30d3.zip
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
Diffstat (limited to 'src/js/_enqueues/admin/edit-comments.js')
-rw-r--r--src/js/_enqueues/admin/edit-comments.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/_enqueues/admin/edit-comments.js b/src/js/_enqueues/admin/edit-comments.js
index 62fd7fa7d0..e20a9917d7 100644
--- a/src/js/_enqueues/admin/edit-comments.js
+++ b/src/js/_enqueues/admin/edit-comments.js
@@ -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();
}
},