Use $.html to refresh page after save

As per If549a0e647ce8.

Change-Id: I6afdc4a80615617678d2d31c2c9e5830b07a6ef0
This commit is contained in:
Ed Sanders 2022-06-27 17:34:32 +01:00
parent 2435a0859d
commit d00fa80ff4

View file

@ -487,8 +487,7 @@ function init( $container, state ) {
* @param {Object} data Data from action=parse API
*/
function updatePageContents( $container, data ) {
var $content = $( $.parseHTML( data.parse.text ) );
$container.find( '.mw-parser-output' ).first().replaceWith( $content );
$container.find( '.mw-parser-output' ).first().html( data.parse.text );
mw.config.set( data.parse.jsconfigvars );
mw.loader.load( data.parse.modulestyles );
mw.loader.load( data.parse.modules );