Debian Codegraph @

resources/src/mediawiki.special.changeslist.legend.js

raw symbols SCIP
1 /*!
2 * Script for changes list legend
3 */
4
5 /* Remember the collapse state of the legend on recent changes and watchlist pages. */
6 mw.hook( 'wikipage.content' ).add( ( $container ) => {
7 $container.find( '.mw-changeslist-legend' )
8 .on( 'toggle', function () {
9 mw.cookie.set( 'changeslist-state', this.open ? 'expanded' : 'collapsed' );
10 } );
11 } );