Content deleted Content added
Writ Keeper (talk | contribs) m test |
Writ Keeper (talk | contribs) test |
||
Line 6:
{
$("#wikiPreview").after('<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 requestString="/w/api.php");
var requestString="/w/api.php?action=query&prop=revisions&format=json&rvcontentformat=text/x-wiki&revids=" + $("input[name='baseRevId']").attr("value") + "&rvdifftotext="+ encodeURIComponent($("textarea#wpTextbox1").text());▼
if($("input[name='wpSection']").attr("value") !== "")
{
requestString = requestString + "&rvsection=" + $("input[name='wpSection']").attr("value");
}
▲ var
$.
{
$("#ajaxDiff").append(response.query.pages[Object.keys(response.query.pages)[0]].revisions[0].diff["*"]);
|