- if ( specialPage === 'Recentchanges' ) {
- $topLinks = $( '.mw-recentchanges-toplinks' ).detach();
-
- topSection = new mw.rcfilters.ui.RcTopSectionWidget(
- savedLinksListWidget, $topLinks
- );
- filtersWidget.setTopSection( topSection.$element );
- } // end Recentchanges
-
- if ( specialPage === 'Recentchangeslinked' ) {
- topSection = new mw.rcfilters.ui.RclTopSectionWidget(
- savedLinksListWidget, controller,
- filtersModel.getGroup( 'toOrFrom' ).getItemByParamName( 'showlinkedto' ),
- filtersModel.getGroup( 'page' ).getItemByParamName( 'target' )
- );
- filtersWidget.setTopSection( topSection.$element );
- } // end Recentchangeslinked
-
- if ( specialPage === 'Watchlist' ) {
- $( '#contentSub, form#mw-watchlist-resetbutton' ).detach();
- $watchlistDetails = $( '.watchlistDetails' ).detach().contents();
-
- topSection = new mw.rcfilters.ui.WatchlistTopSectionWidget(
- controller, changesListModel, savedLinksListWidget, $watchlistDetails
- );
- filtersWidget.setTopSection( topSection.$element );
- } // end Watchlist