Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js |
— | — | @@ -117,13 +117,7 @@ |
118 | 118 | |
119 | 119 | $.post( mediaWiki.config.get( 'wgScriptPath' ) + '/api.php', postdata2, function( data ) { |
120 | 120 | // Add diff CSS |
121 | | - if ( $( 'link[href=' + stylepath + '/common/diff.css]' ).size() == 0 ) { |
122 | | - $( 'head' ).append( $( '<link />' ).attr( { |
123 | | - 'rel': 'stylesheet', |
124 | | - 'type': 'text/css', |
125 | | - 'href': stylepath + '/common/diff.css' |
126 | | - } ) ); |
127 | | - } |
| 121 | + mediaWiki.loader.load( 'mediawiki.legacy.diff' ); |
128 | 122 | try { |
129 | 123 | var diff = data.query.pages[data.query.pageids[0]] |
130 | 124 | .revisions[0].diff['*']; |