Page MenuHomeWickedGov Phorge

mobile.special.watchlist.scripts.js
No OneTemporary

Size
734 B
Referenced Files
None
Subscribers
None

mobile.special.watchlist.scripts.js

/* global $ */
const WatchList = require( './WatchList' ),
eventBus = require( '../mobile.startup/eventBusSingleton' );
/**
* Initialises JavaScript on Special:Watchlist
* @private
*/
function init() {
const $watchlist = $( 'ul.mw-mf-watchlist-page-list' );
// FIXME: find more elegant way to not show watchlist stars on recent changes
if ( $( '.mw-mf-watchlist-selector' ).length === 0 ) {
// eslint-disable-next-line no-new
new WatchList( {
api: new mw.Api(),
el: $watchlist,
funnel: 'watchlist',
skipTemplateRender: true,
eventBus: eventBus
} );
}
// not needed now we have JS view which has infinite scrolling
$watchlist.find( '.mw-mf-watchlist-more' ).remove();
}
$( function () {
init();
} );

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 19, 03:46 (1 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
64/ff/520a517d30e5dc8fd9d2e99cb9ef
Default Alt Text
mobile.special.watchlist.scripts.js (734 B)

Event Timeline