From b6906e70f11b3323526ad043565b182d5924f7a6 Mon Sep 17 00:00:00 2001 From: Addshore Date: Wed, 7 Sep 2016 07:15:28 +0000 Subject: [PATCH] Revert "Do not nest mw-content-text element when reloading a diff" This reverts commit a6c5c5a81c451f7019792cd542e53e3000710e20. Change-Id: Iba8e287e200ece043fe6e0ebed960b5d9e522236 --- modules/ext.RevisionSlider.DiffPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ext.RevisionSlider.DiffPage.js b/modules/ext.RevisionSlider.DiffPage.js index 3253c08b..f6656b22 100644 --- a/modules/ext.RevisionSlider.DiffPage.js +++ b/modules/ext.RevisionSlider.DiffPage.js @@ -59,8 +59,8 @@ $catLinks.replaceWith( $data.find( '#catlinks' ) ); $sidePanel.replaceWith( $data.find( '#mw-panel' ) ); $printFooter.replaceWith( $data.find( '.printfooter' ) ); - $contentText.replaceWith( $data.find( '#mw-content-text' ) ); - $contentText.find( '.mw-revslider-revisions-container' ).scrollLeft( scrollLeft ); + $contentText.html( $data.find( '#mw-content-text' ) ) + .find( '.mw-revslider-revisions-container' ).scrollLeft( scrollLeft ); mw.hook( 'wikipage.content' ).fire( $contentText ); }, function ( xhr ) {