Uporabnik:Dbc334/inlinediff.js: Razlika med redakcijama

m
posodobitev
(NZS)
 
m (posodobitev)
tagLink2.href = "/w/index.php?title=MediaWiki:Monobook.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=2678400";
tagHead.insertBefore(tagLink2, tagHead.lastChild);
}
 
function NZS_ajax(diff, oldid, func) {
htmlTag = document.getElementsByTagName('html')[0];
htmlTag.style.cursor = "wait";
var ajaxreq;
try {ajaxreq = new XMLHttpRequest();} catch(e) {try {ajaxreq = new ActiveXObject("Microsoft.XMLHTTP");} catch(e) {try {ajaxreq = new ActiveXObject("Msxml2.XMLHTTP");} catch(e) {return false;}}}
ajaxreq.open("GET", "/w/index.php?action=render&diffonly=yes&diff=" + diff + "&oldid=" + oldid);
ajaxreq.onreadystatechange = function() {
if(ajaxreq.readyState != 4) {return;}
if(ajaxreq.status == 200) {
htmlTag.style.cursor = "auto";
NZS_showDiff(diff, ajaxreq.responseText);
}
}
ajaxreq.send(null);
}
 
rcLinkResult.style.textAlign = "center";
rcLinkResult.style.width = "100%";
rcLinkResult.innerHTML = "'<img src=\"http://upload.wikimedia.org/wikipedia/commons/4/42/Loading.gif\" id=\"rc2Diff"' + diff + "\'" alt=\"Nalaganje\" width=\"18\" height=\"18\" />"';
var rcList = document.getElementsByTagName('ul')[0];
rcList.replaceChild(rcLinkResult, rcLink);
rcList.insertBefore(rcLink, rcLinkResult);
NZS_ajaxNZS_showDiff(diff, oldid, NZS_showDiff);
}
return false;
}
 
function NZS_showDiff(diff, textoldid) {
document.getElementByIdgetElementsByTagName('rcDiffhtml' + diff)[0].style.textAligncursor = "wait";
$.ajax({
document.getElementById('rcDiff' + diff).innerHTML = text;
ajaxreq.open("GET", url: "/w/index.php?action=render&diffonly=yes&diff=" + diff + "&oldid=" + oldid);,
window.location.hash = "#rcChange" + diff;
success: function(returnData) {
htmlTag = document.getElementsByTagName('html')[0].style.cursor = "auto";
document.getElementById('rcDiff' + diff).style.textAlign = "";
document.getElementById('rcDiff' + diff).innerHTML = textreturnData;
window.location.hash = "#rcChange" + diff;
}
});
}
 
19.279

urejanj