Content deleted Content added
Writ Keeper (talk | contribs) honestly don't even need the extra spacer |
Writ Keeper (talk | contribs) more modernizations |
||
Line 1:
{
if(mw.config.get("wgAction") === "edit" || mw.config.get("wgAction") === "submit" )
Line 7:
mw.loader.load('mediawiki.action.history.diff');
$("#wikiPreview").before('<h2>Your changes</h2><table class="diff" id="ajaxDiff"><colgroup><col class="diff-marker"><col class="diff-content"><col class="diff-marker"><col class="diff-content"></colgroup></table>');
var
if(typeof wpSectionElement.attr("value") !== "undefined")
{
}
var mwApi = new mw.Api();
mwApi.get(diffData).done(function (response)
{
$("#ajaxDiff").append(response.query.pages[Object.keys(response.query.pages)[0]].revisions[0].diff["*"]);
|