RCFilters: Fix live update
authorStephane Bisson <sbisson@wikimedia.org>
Wed, 13 Dec 2017 15:10:41 +0000 (10:10 -0500)
committerStephane Bisson <sbisson@wikimedia.org>
Wed, 13 Dec 2017 15:10:41 +0000 (10:10 -0500)
commita01142f92caeb98d54aa6de738c33fcdae11427c
treeb7b37d5211d3bfb82d6bdc920099b96ac623033a
parent6ef64d6a1dc6091f38f9eedd1e60b02a690707cd
RCFilters: Fix live update

When Id55702ecbe6b96ee57453d4f86f20bd94a401d7c
introduced the MainWrapperWidget, it changed
the order on initialization, which prevents
ChangesListViewModel from getting the initial
value of the 'from' parameter and thus
disables polling for new changes.

This patch ensures ChangesListViewModel is
given the initial form in its constructor
so it can extract what it needs from it
before the page DOM is being transformed.

Bug: T182788
Change-Id: I1b72790194877ff0f200c87e4f40a942f1ccac3b
resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.ChangesListViewModel.js
resources/src/mediawiki.rcfilters/mw.rcfilters.init.js