mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-12 01:16:19 +00:00
Merge "ReplyLinksController: Skip empty reply buttons container"
This commit is contained in:
commit
c049f07055
|
@ -18,7 +18,7 @@ function ReplyLinksController( $pageContainer ) {
|
|||
this.onAnyLinkClickHandler = this.onAnyLinkClick.bind( this );
|
||||
|
||||
// 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 () {
|
||||
var replyButton = OO.ui.infuse( $( this ).find( '.ext-discussiontools-init-replybutton' ) );
|
||||
|
|
Loading…
Reference in a new issue