Merge "ReplyLinksController: Skip empty reply buttons container"

This commit is contained in:
jenkins-bot 2022-10-20 14:35:34 +00:00 committed by Gerrit Code Review
commit c049f07055

View file

@ -18,7 +18,7 @@ function ReplyLinksController( $pageContainer ) {
this.onAnyLinkClickHandler = this.onAnyLinkClick.bind( this ); this.onAnyLinkClickHandler = this.onAnyLinkClick.bind( this );
// Reply links // Reply links
this.$replyLinkSets = $pageContainer.find( '.ext-discussiontools-init-replylink-buttons[data-mw-comment]' ); this.$replyLinkSets = $pageContainer.find( '.ext-discussiontools-init-replylink-buttons[data-mw-comment]:not(:empty)' );
this.$replyLinkSets.each( function () { this.$replyLinkSets.each( function () {
var replyButton = OO.ui.infuse( $( this ).find( '.ext-discussiontools-init-replybutton' ) ); var replyButton = OO.ui.infuse( $( this ).find( '.ext-discussiontools-init-replybutton' ) );