summaryrefslogtreecommitdiff
path: root/extensions/WikiEditor/modules/jquery.wikiEditor.preview.js
diff options
context:
space:
mode:
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 )