RCFilters: Don't grey out results area when initializing, unless there's a default...
authorRoan Kattouw <roan.kattouw@gmail.com>
Wed, 20 Sep 2017 00:54:55 +0000 (17:54 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Wed, 20 Sep 2017 04:42:56 +0000 (21:42 -0700)
commit78703ae9f6eb888a78356124f43dc0c0005fc3d2
tree0b4718ae7e7c6ebd6e8bfb0c687cd9a90379f7b9
parentbe99787e5b216247ffbc26a7f90e27ac985fff4f
RCFilters: Don't grey out results area when initializing, unless there's a default saved query

Check whether there is a default saved query on the server side, and if there is,
add the mw-rcfilters-ui-loading class.

Also centralize the code related to the saved query preferences.

Bug: T173533
Change-Id: I4138fde22bdd8cc55c65846b91184c3ad3057244
includes/specialpage/ChangesListSpecialPage.php
includes/specials/SpecialRecentchanges.php
includes/specials/SpecialWatchlist.php
resources/src/mediawiki.rcfilters/mw.rcfilters.init.js
resources/src/mediawiki.rcfilters/styles/mw.rcfilters.less