Preview: Add content clears after side-by-side preview

Change-Id: Ib6147e38aa98a5498300513da3557ce74af1252d
This commit is contained in:
Derk-Jan Hartman 2014-11-10 21:02:43 +01:00
parent 30e2081e7b
commit 4af678cdd2

View file

@ -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( '<div class="visualClear"></div>' )
.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( '<div class="visualClear"></div>' );
context.modules.preview.changesText = wikitext;
} catch ( e ) {
// "data.blah is undefined" error, ignore