User:Jorgenev/AJAXSectionEditor.js: Difference between revisions

Content deleted Content added
No edit summary
m Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879)
 
(5 intermediate revisions by one other user not shown)
Line 40:
}
});
 
$.get('http://en.wikipedia.org/w/index.php?action=purge&title='+PageName, function(data) {
 
});
 
$.get('http://en.wikipedia.org/w/index.php?action=render&title='+PageName, function(data) {
document.getElementById("bodyContent").innerHTML = data;
});
}
 
Line 100 ⟶ 92:
if(!h1 || h < sh)
{
document.getElementById("bodyContentthesectiondata").innerHTMLstyle.height = data10+"px";
document.getElementById("thesectiondata").style.height = (25+document.getElementById("thesectiondata").scrollHeight)+"px";
}
}
 
addOnloadHook$(function (){
var i = 0;