RCFilters UI: Don't set reset button title in "restore" mode
authorRoan Kattouw <roan.kattouw@gmail.com>
Mon, 20 Mar 2017 23:26:14 +0000 (16:26 -0700)
committerMoriel Schottlender <moriel@gmail.com>
Mon, 20 Mar 2017 23:36:28 +0000 (16:36 -0700)
commit07157675bdaaaa1ae982b658d98dce41fb24b6e9
treeaa38bd72ed8faa9eb60665dde360a53c23629c84
parentf3400d2195359b48088ef91f95b436442b0b8f3b
RCFilters UI: Don't set reset button title in "restore" mode

In "clear" mode, the button only has an icon, so it needs a title.
In "restore" mode, the button has text, so it doesn't need a title,
much less a wrong one (the one from the "clear" mode).

Bonus: Remove properties from constructor that are already
set in reevaluateResetRestoreState().

Change-Id: Idab5731f51b42455801a505475002adf8437c66e
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterCapsuleMultiselectWidget.js