Mooeypoo has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/243022

Change subject: Use the new editor for topics that show on infinite scroll
......................................................................

Use the new editor for topics that show on infinite scroll

Update the topics that load on infinite scroll to use the new
editor system rather than the old.

Bug: T114326
Change-Id: I1d4848288394afce741bdf0ef0a31d6fc3bb72df
---
M modules/flow-initialize.js
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/22/243022/1

diff --git a/modules/flow-initialize.js b/modules/flow-initialize.js
index 22717a8..76c77b6 100644
--- a/modules/flow-initialize.js
+++ b/modules/flow-initialize.js
@@ -165,6 +165,12 @@
                flowBoard.on( 'loadmore', function ( topiclist ) {
                        // Add to the DM board
                        mw.flow.system.populateBoardTopicsFromJson( topiclist );
+
+                       replaceReplyForms( $board );
+                       deactivateReplyLinks( $board );
+
+                       // Cancel the interactive handler so "old" system 
doesn't get triggered for internal replies
+                       $( 
'[data-flow-interactive-handler="activateReplyPost"]' ).attr( 
'data-flow-interactive-handler', '' );
                } );
 
                // HACK: Update the DM when topic is refreshed

-- 
To view, visit https://gerrit.wikimedia.org/r/243022
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d4848288394afce741bdf0ef0a31d6fc3bb72df
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Mooeypoo <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to