From: Moriel Schottlender Date: Thu, 23 Feb 2017 21:54:41 +0000 (-0800) Subject: Folowup I341c3f7c: Fire wikipage.content with the correct content X-Git-Tag: 1.31.0-rc.0~3998^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=45592586b487c32c63a38138983fdc9594468cb9;p=lhc%2Fweb%2Fwiklou.git Folowup I341c3f7c: Fire wikipage.content with the correct content The content we are getting from the Ajax request can be either a jQuery or string, which makes the handler of the event break. Instead, pass in this.$element which already wrapped the response. Change-Id: I1c1231b1476fb2cbef10231fdd853401ebf02ed3 --- diff --git a/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.ChangesListWrapperWidget.js b/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.ChangesListWrapperWidget.js index a2a6b16cfe..84248e1c85 100644 --- a/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.ChangesListWrapperWidget.js +++ b/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.ChangesListWrapperWidget.js @@ -105,7 +105,7 @@ this.applyHighlight(); // Make sure enhanced RC re-initializes correctly - mw.hook( 'wikipage.content' ).fire( this.$changesListContent ); + mw.hook( 'wikipage.content' ).fire( this.$element ); } this.popPending(); };