aboutsummaryrefslogtreecommitdiffstats
path: root/includes/specials/SpecialWatchlist.php
diff options
context:
space:
mode:
authorMoriel Schottlender <moriel@gmail.com>2018-06-18 15:04:47 -0700
committerMoriel Schottlender <moriel@gmail.com>2018-06-20 11:12:00 -0700
commit232deffd8178c079a855eff15e7704e4bfc63f89 (patch)
tree89e785d8d6b479c51f1a5af6d8cda72b4f2ac7b7 /includes/specials/SpecialWatchlist.php
parentcfa0717d4ac572549fbc00fba3f48a4cac7f4d3b (diff)
downloadmediawikicore-232deffd8178c079a855eff15e7704e4bfc63f89.tar.gz
mediawikicore-232deffd8178c079a855eff15e7704e4bfc63f89.zip
RCFilters: Preserve collapsed state and adjust display
When collapsed, make sure we are adjusting the 'min-height' on the 'rcfilters-head' div so that it actually takes the space it should. Make sure the preference of whether the area is collapsed or not is preserved for the user, per RC or WL pages, and that it is loaded properly with the correct minimum height dimensions depending on which state is in the preferences, so to prevent "jump" of the result list after load. Bug: T177206 Change-Id: I82c3042cd1bb85dedcd6b5458b157fed94def808
Diffstat (limited to 'includes/specials/SpecialWatchlist.php')
-rw-r--r--includes/specials/SpecialWatchlist.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php
index ce7fea9c6fbb..b9543d9bf6c3 100644
--- a/includes/specials/SpecialWatchlist.php
+++ b/includes/specials/SpecialWatchlist.php
@@ -35,6 +35,7 @@ class SpecialWatchlist extends ChangesListSpecialPage {
protected static $savedQueriesPreferenceName = 'rcfilters-wl-saved-queries';
protected static $daysPreferenceName = 'watchlistdays';
protected static $limitPreferenceName = 'wllimit';
+ protected static $collapsedPreferenceName = 'rcfilters-wl-collapsed';
private $maxDays;