} );
this.$topLinks
- .addClass( 'mw-rcfilters-ui-ready' )
.makeCollapsible( {
collapsed: topLinksCookieValue === 'collapsed',
$customTogglers: toplinksTitle.$element
widget.switchTopLinks( 'collapsed' );
} );
- this.$topLinks.find( '.mw-recentchanges-toplinks-title' ).replaceWith( toplinksTitle.$element );
+ this.$topLinks.find( '.mw-recentchanges-toplinks-title' )
+ .replaceWith( toplinksTitle.$element.removeAttr( 'tabIndex' ) );
// Create two positions for the toplinks to toggle between
// in the table (first cell) or up above it
this.$element
.addClass( 'mw-rcfilters-ui-rcTopSectionWidget' )
.append(
- this.$top,
$( '<div>' )
.addClass( 'mw-rcfilters-ui-table' )
.append(
)
);
+ // Hack: For jumpiness reasons, this should be a sibling of -head
+ $( '.rcfilters-head' ).before( this.$top );
+
// Initialize top links position
widget.switchTopLinks( topLinksCookieValue );
};