Also refresh the article preview

Change-Id: I8a96515db9a0dbe329000a51840ad2f365b5aba0
This commit is contained in:
addshore 2016-05-13 12:22:02 +01:00 committed by Addshore
parent ec80c4fa6f
commit b86ceb02bf

View file

@ -17,9 +17,10 @@
retryLimit: 2,
success: function ( data ) {
data = $( '<div/>' ).html( data ).contents();
data.find( '#revision-slider-container' ).replaceWith( $( '#revision-slider-container' ) );
$( 'body' )
.find( 'table.diff[data-mw=\'interface\']' )
.html( data.find( 'table.diff[data-mw=\'interface\']' ) );
.find( '#mw-content-text' )
.html( data.find( '#mw-content-text' ) );
},
error: function ( err ) {
this.tryCount++;