r74327 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74326‎ | r74327 | r74328 >
Date:22:06, 5 October 2010
Author:tparscal
Status:ok
Tags:
Comment:
Made use of mediaWiki.loader for adding in mediawiki.legacy.diff for the change tab of jquery.wikiEditor.preview
Modified paths:
  • /trunk/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js
@@ -117,13 +117,7 @@
118118
119119 $.post( mediaWiki.config.get( 'wgScriptPath' ) + '/api.php', postdata2, function( data ) {
120120 // 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' );
128122 try {
129123 var diff = data.query.pages[data.query.pageids[0]]
130124 .revisions[0].diff['*'];

Status & tagging log