mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-23 18:38:18 +00:00
Controller: Use 'this' in $.each as intended
Change-Id: Icd507d6726ca391fc39e5d89429e0eed35ba9873
This commit is contained in:
parent
ebd37369ce
commit
fe18f5ba22
|
@ -449,8 +449,8 @@ function updateSubscriptionStates( $container, headingsToUpdate ) {
|
|||
|
||||
var $links = $container.find( '.ext-discussiontools-init-section-subscribe-link' );
|
||||
var linksByName = {};
|
||||
$links.each( function ( i, elem ) {
|
||||
linksByName[ elem.getAttribute( 'data-mw-comment-name' ) ] = elem;
|
||||
$links.each( function () {
|
||||
linksByName[ this.getAttribute( 'data-mw-comment-name' ) ] = this;
|
||||
} );
|
||||
|
||||
// If the topic is already marked as auto-subscribed, there's nothing to do.
|
||||
|
|
Loading…
Reference in a new issue