Uporabnik:Dbc334/inlinediff.js: Razlika med redakcijama

m
brez povzetka urejanja
(posodobitev)
m
rcDiffTag.style.display = (rcDiffTag.style.display=='none'?'':'none');
} else {
var rcLink = document.getElementById('rcChange' + diff);
var rcLinkResult = document.createElement('li');
rcLinkResult.id = 'rcDiff' + diff;
rcLinkResult.style.textAlign = 'center';
rcLinkResult.style.width = '100%';
rcLinkResult.style.textAlign = 'center';
 
var loadingImage = new Image(18, 18);
 
var rcList = document.getElementsByTagName('ul')[0];
var rcLink = document.getElementById('rcChange' + diff);
rcList.replaceChild(rcLinkResult, rcLink);
rcList.insertBefore(rcLink, rcLinkResult);
 
NZS_showDiff(diff, oldid);
}
 
function NZS_showDiff(diff, oldid) {
document.getElementsByTagName('html')[0].style.cursor = 'wait';
 
$.ajax({
url: '/w/index.php?action=render&diffonly=yes&diff='+diff+'&oldid='+oldid,
success: function(returnData) {
document.getElementsByTagName('html')[0].style.cursor = 'auto';
document.getElementById('rcDiff' + diff).style.textAlign = '';
document.getElementById('rcDiff' + diff).innerHTML = returnData;
19.279

urejanj