diff --git a/modules/jquery.wikiEditor.preview.js b/modules/jquery.wikiEditor.preview.js index f0665220..04a38315 100644 --- a/modules/jquery.wikiEditor.preview.js +++ b/modules/jquery.wikiEditor.preview.js @@ -74,6 +74,7 @@ fn: { context.modules.preview.$preview.find( '.wikiEditor-preview-loading' ).hide(); context.modules.preview.$preview.find( '.wikiEditor-preview-contents' ) .html( data.parse.text['*'] ) + .append( '
' ) .find( 'a:not([href^=#])' ) .click( false ); @@ -140,7 +141,9 @@ fn: { var diff = data.query.pages[data.query.pageids[0]] .revisions[0].diff['*']; - context.$changesTab.find( 'table.diff tbody' ).html( diff ); + context.$changesTab.find( 'table.diff tbody' ) + .html( diff ) + .append( '
' ); context.modules.preview.changesText = wikitext; } catch ( e ) { // "data.blah is undefined" error, ignore