mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-14 11:25:10 +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 );
|
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' ) );
|
||||||
|
|
Loading…
Reference in a new issue