SpecialWatchlist: Add an option to automatically reload the page when a filter was...
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Sat, 28 Nov 2015 15:10:33 +0000 (16:10 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 4 Dec 2015 15:48:22 +0000 (16:48 +0100)
commit5327e3db561cd5efc67d71302ec961a33acab38e
tree257ffebda9fa00e1afd26c9046aaf99f9ff7e316
parent10703fae49eb193225c805ab9bb0938e9336b5f5
SpecialWatchlist: Add an option to automatically reload the page when a filter was changed

The biggest negative point (as far as I can tell) with the change mentioned in the follow-up
is, that a user needs at least 3 clicks to change an option, which before it required only
one click. This option adds a new preference for the watchlist (which can be enabled/disabled
using Special:Preferences) which, if enabled, loads a new, tiny module with a script, that
listens on all input and select fields in the header form of Special:Watchlist. Whenever one
of these elements get changed, the watchlist form will be submitted automatically.

The default for this option is false (disabled).

Follow up: I3bcd27596c21aa4

Bug: T50615
Bug: T119322
Change-Id: Icab1a5143df24a06f468165421d40db8fa57e73c
includes/DefaultSettings.php
includes/Preferences.php
includes/specials/SpecialWatchlist.php
languages/i18n/en.json
languages/i18n/qqq.json
resources/Resources.php
resources/src/mediawiki.special/mediawiki.special.watchlist.js [new file with mode: 0644]