summaryrefslogtreecommitdiff
path: root/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-04-26 18:23:31 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-04-26 18:23:31 +0200
commitc4372dd38a4d109b4f3881ea63b667e33adbe503 (patch)
treee8e6dae1229a68c26b7a348c73dc0c8c77da97e5 /extensions/WikiEditor/modules/jquery.wikiEditor.preview.js
parentcf566324cfb218f0c7323d97d2a103bbb8d60ba4 (diff)
Update to MediaWiki 1.18.3
Diffstat (limited to 'extensions/WikiEditor/modules/jquery.wikiEditor.preview.js')
-rw-r--r--extensions/WikiEditor/modules/jquery.wikiEditor.preview.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js b/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js
index 634672a8..22c6d89e 100644
--- a/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js
+++ b/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js
@@ -78,7 +78,7 @@ fn: {
);
}
} );
-
+
context.$changesTab = context.fn.addView( {
'name': 'changes',
'titleMsg': 'wikieditor-preview-changes-tab',
@@ -91,7 +91,7 @@ fn: {
}
context.$changesTab.find( 'table.diff tbody' ).empty();
context.$changesTab.find( '.wikiEditor-preview-loading' ).show();
-
+
// Call the API. First PST the input, then diff it
var postdata = {
'action': 'parse',
@@ -99,7 +99,7 @@ fn: {
'text': wikitext,
'format': 'json'
};
-
+
$.post( mw.util.wikiScript( 'api' ), postdata, function( data ) {
try {
var postdata2 = {
@@ -114,7 +114,7 @@ fn: {
var section = $( '[name=wpSection]' ).val();
if ( section != '' )
postdata2['rvsection'] = section;
-
+
$.post( mw.util.wikiScript( 'api' ), postdata2, function( data ) {
// Add diff CSS
mw.loader.load( 'mediawiki.action.history.diff' );
@@ -133,7 +133,7 @@ fn: {
}, 'json' );
}
} );
-
+
var loadingMsg = mediaWiki.msg( 'wikieditor-preview-loading' );
context.modules.preview.$preview
.add( context.$changesTab )