XFileSharing Pro - make invisible the download button while in the countdown - Page 2

Message
Author
nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

#16 Postby nyan » Oct 25, 2012 5:41 pm

just use document.getelementbyid(yourbutton and your capcha or w/e).style="block"; or the $() thing
put display to none on page load and stick that line in the following on xupload.js (old xfs version)

Code: Select all

function countDown()
{
    num = parseInt( $('countdown').innerHTML )-1;
    if(num<=0)
    {
>>put that line here
        $('btn_download').disabled=false;
        $('btn_download2').disabled=false;
        $('countdown_str').style.display='none';

    }
    else
    {
        $('countdown').innerHTML = num;
        setTimeout("countDown()",1000);
    }
}

randy
Posts: 321
Joined: Mar 13, 2012 7:00 pm

#17 Postby randy » Oct 27, 2012 5:48 pm

this would be so nice :)