diff options
author | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2021-02-23 19:43:23 +0000 |
---|---|---|
committer | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2021-02-23 19:43:23 +0000 |
commit | 69751046d6de1df92919d19f597f1f887fcc834a (patch) | |
tree | 2e23398c3e04f5e71eb7f8d93f012eb082a6bd67 /src/js/_enqueues/admin/edit-comments.js | |
parent | 0a2ba7cb29d03be02b4937ae5ae6f97aba73cab7 (diff) | |
download | wordpress-69751046d6de1df92919d19f597f1f887fcc834a.tar.gz wordpress-69751046d6de1df92919d19f597f1f887fcc834a.zip |
External Libraries: Further fix jQuery deprecations in WordPress core.
This includes many minor adjustments to a wide array of core files to replace shorthands with full declarations.
Follow-up to [50001], [50270], [50367].
Props Clorith, hellofromTonya, peterwilsoncc, adamsilverstein, aristath.
See #51812.
git-svn-id: https://develop.svn.wordpress.org/trunk@50420 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/js/_enqueues/admin/edit-comments.js')
-rw-r--r-- | src/js/_enqueues/admin/edit-comments.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/_enqueues/admin/edit-comments.js b/src/js/_enqueues/admin/edit-comments.js index 6c9c2520b9..31d0c551a7 100644 --- a/src/js/_enqueues/admin/edit-comments.js +++ b/src/js/_enqueues/admin/edit-comments.js @@ -850,7 +850,7 @@ window.commentReply = { */ toggle : function(el) { if ( 'none' !== $( el ).css( 'display' ) && ( $( '#replyrow' ).parent().is('#com-reply') || window.confirm( __( 'Are you sure you want to edit this comment?\nThe changes you made will be lost.' ) ) ) ) { - $( el ).find( 'button.vim-q' ).click(); + $( el ).find( 'button.vim-q' ).trigger( 'click' ); } }, @@ -1298,7 +1298,7 @@ $(document).ready(function(){ return function() { var scope = $('select[name="action"]'); $('option[value="' + value + '"]', scope).prop('selected', true); - $('#doaction').click(); + $('#doaction').trigger( 'click' ); }; }; |