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)
 
(29 intermediate revisions by one other user not shown)
Line 86:
function updateheight()
{
var hh1 = parseInt(document.getElementById("thesectiondata").style.height.replace("px",""));
var h = parseInt(h1)-25;
var sh = document.getElementById("thesectiondata").scrollHeight;
 
alert(h + " " +if(!h1 sh|| +h "< " + Math.abs(h-sh));
 
if(Math.abs(parseInt(document.getElementById("thesectiondata").style.height.replace("px",""))/10)-document.getElementById("thesectiondata").scrollHeight/10 > 10)
{
if(parseInt(document.getElementById("thesectiondata").style.height.replace( = 10+"px","")); < (document.getElementById("thesectiondata").scrollHeight.replace))
{
document.getElementById("thesectiondata").style.height = "0px";
}
document.getElementById("thesectiondata").style.height = (25+document.getElementById("thesectiondata").scrollHeight)+"px";
{}
}
}
 
addOnloadHook$(function (){
var i = 0;