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

This commit is contained in:
jenkins-bot 2014-11-17 01:33:43 +00:00 committed by Gerrit Code Review
commit b0eaa97486

View file

@ -74,6 +74,7 @@ fn: {
context.modules.preview.$preview.find( '.wikiEditor-preview-loading' ).hide(); context.modules.preview.$preview.find( '.wikiEditor-preview-loading' ).hide();
context.modules.preview.$preview.find( '.wikiEditor-preview-contents' ) context.modules.preview.$preview.find( '.wikiEditor-preview-contents' )
.html( data.parse.text['*'] ) .html( data.parse.text['*'] )
.append( '<div class="visualClear"></div>' )
.find( 'a:not([href^=#])' ) .find( 'a:not([href^=#])' )
.click( false ); .click( false );
@ -140,7 +141,9 @@ fn: {
var diff = data.query.pages[data.query.pageids[0]] var diff = data.query.pages[data.query.pageids[0]]
.revisions[0].diff['*']; .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; context.modules.preview.changesText = wikitext;
} catch ( e ) { } catch ( e ) {
// "data.blah is undefined" error, ignore // "data.blah is undefined" error, ignore