.revisions[ 0 ].diff.body;
$wikiDiff.find( 'table.diff tbody' ).html( diffHtml );
mw.hook( 'wikipage.diff' ).fire( $wikiDiff.find( 'table.diff' ) );
- } catch ( e ) {
+ } catch ( err ) {
// "result.blah is undefined" error, ignore
- mw.log.warn( e );
+ mw.log.warn( err );
}
$wikiDiff.show();
} );
preview: true,
sectionpreview: section !== '',
disableeditsection: true,
+ useskin: mw.config.get( 'skin' ),
uselang: mw.config.get( 'wgUserLanguage' )
} );
if ( section === 'new' ) {
// This should be moved down to '#editform', but is kept on the body for now
// because the LiquidThreads extension is re-using this module with only half
- // the EditPage (doesn't include #editform presumably, bug 55463).
+ // the EditPage (doesn't include #editform presumably, T57463).
$( document.body ).on( 'click', '#wpPreview, #wpDiff', doLivePreview );
} );