aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js/CGP-async.js
blob: 497650941be5e6e4381ff69af28d1bbd8b548429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function draw(id) {
        var rrdgraph = prepare_draw(id);

        try {
                rrdgraph.graph_paint_async();
        } catch (e) {
                alert(e+"\n"+e.stack);
        }
}

function drawAll()
{
        var list=[];
        var a=document.getElementsByClassName('rrd');
        for (var i=0,l=a.length;i<l;i++)
        {
                draw(a[i].getAttribute('id'))
        }
}

window.onload = drawAll()