Table looses JavaScript on 2nd page?

To fix this I put a time delay on the javascript to make sure the component was fully rendered first. This fully fixed it.

TB.render('component_3',function(){
    function run(){
        $('routing-info-string').each(function(){
            $(this).text($(this).text().replace(/.0000000000/g,''));
            console.log("routing-info-string script run");
        })
        console.log("component_3 rendered")
    }
    setTimeout(run,30);
});
1 Like