User:Jorgenev/AJAXSectionEditor.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 87:
{
var h1 = document.getElementById("thesectiondata").style.height.replace("px","");
var h = parseInt(h1)+25;
var sh = document.getElementById("thesectiondata").scrollHeight;
 
alert(h1 + " " +if(!h1 h + " " + sh + " " +|| Math.abs(h-sh) > 10);
 
if(!h1 || Math.abs(h-sh) > 5)
{
if(parseInt(document.getElementById("thesectiondata").style.height.replace("px","")) < (document.getElementById("thesectiondata").scrollHeight+25))