mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Use $.html to refresh page after save
As per If549a0e647ce8. Change-Id: I6afdc4a80615617678d2d31c2c9e5830b07a6ef0
This commit is contained in:
parent
2435a0859d
commit
d00fa80ff4
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue