2 * JavaScript for Special:Watchlist
4 * This script is only loaded, if the user opt-in a setting in Special:Preferences,
5 * that the watchlist should be automatically reloaded, when a filter option is
6 * changed in the header form.
8 jQuery( function ( $ ) {
9 // add a listener on all form elements in the header form
10 $( '#mw-watchlist-form input, #mw-watchlist-form select' ).on( 'change', function () {
11 // submit the form, when one of the input fields was changed
12 $( '#mw-watchlist-form' ).submit();