Hi!
I have pro version and all works good except when i want to get my popup closes automatically when upload finishes. I put a checkbox in my popup html "Close window when finish" and there's a function like this in the xstatus.js file:
function ClosePopUp()
{
if(doc.getElementById('close_finished') && document.getElementById('close_finished').checked==true)self.close();
}
finally i put a function call in upload_status.cgi file to call this function just here:
f(grep{/^uploaded$/i}@$msgs) #finished upload
{
$files++;
print"S('100','$totalKB','$time','$speedKB','$files',0);";
print"if(document.getElementById('stop_btn')){document.getElementById('stop_btn').style.display='none';}";
print qq{ClosePopUp();};
}
else
{
print qq{S('$percent','$currentKB','$time','$speedKB','$files','$estimate');} unless $uploaded;
}
then the popup sometimes closes sometimes not, how can i get to close it always? Thanks.